note
	description: "Mutex synchronization object, allows threads to access global data through critical sections. Mutexes are recursive."
	legal: "See notice at end of class."
	status: "See notice at end of class."
	date: "$Date: 2018-08-28 17:44:05 +0000 (Tue, 28 Aug 2018) $"
	revision: "$Revision: 102097 $"

class interface
	MUTEX

create 
	make

feature -- Status report

	is_set: BOOLEAN
			-- Is mutex initialized?
	
feature -- Status setting

	lock
			-- Lock mutex, waiting if necessary until that becomes possible.
		require
			is_set: is_set

	try_lock: BOOLEAN
			-- Has client been successful in locking mutex without waiting?
		require
			is_set: is_set

	unlock
			-- Unlock mutex.
		require
			is_set: is_set

	destroy
			-- Destroy mutex.
		require
			is_set: is_set
		ensure
			not_set: not is_set
	
feature -- Removal

	dispose
			-- Called by the garbage collector when the mutex is
			-- collected.
	
note
	copyright: "Copyright (c) 1984-2018, 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 MUTEX

Generated by ISE EiffelStudio