From e4285eca1443a7b07fb919c6cc4cbc1b6cd2265d Mon Sep 17 00:00:00 2001 From: jfiat Date: Mon, 12 Apr 2010 05:41:12 +0000 Subject: [PATCH] Author:admin Date:2010-04-12T05:39:31.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@552 abb3cda0-5349-4a8f-a601-0c33ac3a8c38 --- .../once-features-multithreaded-mode.wiki | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) 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.