note description: "Semaphore synchronization object, allows threads to access global data through critical sections." legal: "See notice at end of class." status: "See notice at end of class." date: "$Date: 2017-05-25 15:02:28 +0000 (Thu, 25 May 2017) $" revision: "$Revision: 100436 $" class interface SEMAPHORE create make feature -- Access is_set: BOOLEAN -- Is semaphore initialized? feature -- Status setting try_wait: BOOLEAN -- Has client been successful in decrementing semaphore -- count without waiting? require valid_semaphore: is_set wait -- Decrement semaphore count, waiting if necessary until -- that becomes possible. require valid_semaphore: is_set post -- Increment semaphore count. require valid_semaphore: is_set destroy -- Destroy semaphore. require valid_semaphore: is_set ensure not_set: not is_set feature -- Removal dispose -- Called by the garbage collector when the semaphore -- is collected. note copyright: "Copyright (c) 1984-2017, 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 SEMAPHORE
Generated by ISE EiffelStudio