diff --git a/documentation/current/solutions/concurrent-computing/eiffelthread/eiffelthread-tutorial/once-features-multithreaded-mode.wiki b/documentation/current/solutions/concurrent-computing/eiffelthread/eiffelthread-tutorial/once-features-multithreaded-mode.wiki index 109eeb26..4ab8a757 100644 --- a/documentation/current/solutions/concurrent-computing/eiffelthread/eiffelthread-tutorial/once-features-multithreaded-mode.wiki +++ b/documentation/current/solutions/concurrent-computing/eiffelthread/eiffelthread-tutorial/once-features-multithreaded-mode.wiki @@ -26,7 +26,7 @@ feature -- Access object_per_thread: OBJECT -- Once per thread. - once ("THREAD") + once create Result.make end @@ -34,22 +34,14 @@ feature -- Access -- New 'object' (once per process) -- that could be shared between threads -- without reinitializing it. - once ("PROCESS") + note + once_status: global + once create Result.make end end -- class TEST_ONCE_PER_PROCESS - -Note that if you don't precise any once's key, the default is once per thread. For instance the following once is per thread. - - object_per_thread: OBJECT - -- Once per thread. - once - create Result.make - end - - You can do the same with once procedures.