Automatic generation produced by ISE Eiffel
note description: "Features to access and interact with the SCOOP runtime." date: "$Date: 2015-06-11 02:29:55 -0700 (Thu, 11 Jun 2015) $" revision: "$Revision: 97458 $" class ISE_SCOOP_RUNTIME create default_create feature -- Access frozen invalid_region_id: NATURAL_16 -- The special region ID used for invalid regions. external "C macro use %"eif_scoop.h%"" alias "EIF_NULL_PROCESSOR" end frozen region_id (a_object: separate ANY): NATURAL_16 -- The region ID on which `a_object' is placed. do Result := c_region_id ($a_object.to_pointer) end feature -- Basic operations pin_to_thread -- Pin the current processor to its own thread. do c_disable_impersonation (c_region_id ($Current.to_pointer)) end pin_processor_to_thread (a_object: separate ANY) -- Pin the processor behind the separate object `a_object' to its own thread. local ignored: POINTER do ignored := a_object.default_pointer c_disable_impersonation (c_region_id ($a_object.to_pointer)) end feature {NONE} -- Implementation frozen c_region_id (a_object: POINTER): NATURAL_16 -- C exxternal for the region ID of an object. external "C inline use %"eif_macros.h%"" alias "return RTS_PID($a_object)" end frozen c_disable_impersonation (a_pid: NATURAL_16) -- C external to disable impersonation for a specific processor. external "C inline use %"eif_scoop.h%"" alias "eif_scoop_set_is_impersonation_allowed ($a_pid, EIF_FALSE)" end note copyright: "Copyright (c) 1984-2015, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 5949 Hollister Ave., Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class ISE_SCOOP_RUNTIME -- Generated by ISE Eiffel --
For more details: www.eiffel.com