indexing description: "[ Test thread ]" status: "See notice at end of class." legal: "See notice at end of class." date: "$Date$" revision: "$Revision$" class BENCHMARK_THREAD inherit THREAD EGS_SPACE_FINDER create make feature test: BENCHMARK_TEST feature -- Creation make (a_test: BENCHMARK_TEST) is require a_test_non_void: a_test /= Void do test := a_test end feature execute is -- Routine executed by new thread. local space_proxy: EGS_SPACE_PROXY i: INTEGER do space_proxy := attach (test.benchmark.space_proxy) if space_proxy /= Void then test.set_proxy (space_proxy) from i := 1 until test.failed or i > test.benchmark.repeats loop test.set_up test.run test.tear_down i := i + 1 end space_proxy.thread_detach -- NOTE !! We need it because this object must be disposed before the -- test.benchmark.space_proxy space_proxy.dispose else test.set_failed (True) end end feature indexing copyright: "Copyright (c) 2008, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end