diff --git a/documentation/current/eiffelstudio/_images/es_gt_reset_tools_layout_01.png b/documentation/current/eiffelstudio/_images/es_gt_reset_tools_layout_01.png new file mode 100644 index 00000000..44b06a18 Binary files /dev/null and b/documentation/current/eiffelstudio/_images/es_gt_reset_tools_layout_01.png differ diff --git a/documentation/current/eiffelstudio/_images/es_gt_reset_tools_layout_01.png.data b/documentation/current/eiffelstudio/_images/es_gt_reset_tools_layout_01.png.data new file mode 100644 index 00000000..c2c74a7a --- /dev/null +++ b/documentation/current/eiffelstudio/_images/es_gt_reset_tools_layout_01.png.data @@ -0,0 +1,3 @@ +title=es gt reset tools layout 01 +author=halw +path=content/es-gt-reset-tools-layout-01 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 4ab8a757..109eeb26 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 + once ("THREAD") create Result.make end @@ -34,14 +34,22 @@ feature -- Access -- New 'object' (once per process) -- that could be shared between threads -- without reinitializing it. - note - once_status: global - once + once ("PROCESS") 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.