note
	description: "Read/Write synchronization object, allows multiple reader threads to have access to a resource, and only one writer thread."
	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
	READ_WRITE_LOCK

create 
	make

feature -- Access

	is_set: BOOLEAN
			-- Is read/write lock initialized?
	
feature -- Status setting

	acquire_read_lock
			-- Lock current on a read.
		require
			is_set: is_set

	acquire_write_lock
			-- Lock current on a write.
		require
			is_set: is_set

	release_read_lock
			-- Unlock Reader lock.
		require
			is_set: is_set

	release_write_lock
			-- Unlock Writer lock.
		require
			is_set: is_set

	destroy
			-- Destroy read/write lock.
		require
			is_set: is_set
		ensure
			not_set: not is_set
	
feature -- Removal

	dispose
			-- Called by the garbage collector when the read/write lock 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 READ_WRITE_LOCK

Generated by ISE EiffelStudio