4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-15 02:09:19 +08:00
Corinna Vinschen a1591d3be7 Drop old SetResourceLock stuff in favor of mutos.
* dcrt0.cc (_reslock): Remove.
	(__cygwin_user_data): Accommodate removal of resourcelocks member.
	(dll_crt0_0): Don't initialize resourcelocks.
	* exceptions.cc (_cygtls::signal_exit): Drop resourcelocks handling.
	* mmap.cc (mmap_guard): New muto.
	(LIST_LOCK): Define.
	(LIST_UNLOCK): Define.
	(mmap_list::search_record): Remove.
	(mmap_list::try_map): Include code for anonymous case from
	mmap_list::search_record.
	(mmap_is_attached_or_noreserve): Access bookkeeping lists in a thread
	safe way.
	(mmap64): Replace SetResourceLock/ReleaseResourceLock by
	LIST_LOCK/LIST_UNLOCK.  Lock at the latest possible point.
	(munmap): Replace SetResourceLock/ReleaseResourceLock by
	LIST_LOCK/LIST_UNLOCK.
	(msync): Ditto.
	(mprotect): Ditto.
	* thread.cc (ResourceLocks::Lock): Remove.
	(SetResourceLock): Remove.
	(ReleaseResourceLock): Remove.
	(ResourceLocks::Init): Remove.
	(ResourceLocks::Delete): Remove.
	* thread.h (SetResourceLock): Drop declaration.
	(ReleaseResourceLock): Ditto.
	(class ResourceLocks): Drop definition.
	* include/sys/cygwin.h (class ResourceLocks): Drop forward declaration.
	(struct per_process): Replace resourcelocks with additional unused2
	element.
	(per_process_overwrite): Accommodate above change.
2007-11-27 14:45:14 +00:00
..
2006-05-24 16:59:03 +00:00
2006-03-01 20:20:22 +00:00
2006-01-16 19:52:21 +00:00
2007-01-03 11:14:53 +00:00
2006-05-24 16:59:03 +00:00
2005-09-29 14:28:22 +00:00
2005-03-23 17:11:24 +00:00
2006-11-27 12:59:59 +00:00
2006-02-15 22:11:13 +00:00
2005-09-28 19:22:25 +00:00
2007-11-08 14:37:59 +00:00
2007-11-08 14:37:59 +00:00
2007-07-07 16:43:03 +00:00
2006-03-01 20:20:22 +00:00
2007-03-06 16:29:40 +00:00
2007-07-14 15:58:32 +00:00
2005-05-02 03:50:11 +00:00
2007-02-20 00:16:18 +00:00
2007-11-08 15:18:06 +00:00
2007-07-07 16:43:03 +00:00
2007-06-29 15:13:01 +00:00
2007-02-20 15:48:04 +00:00
2007-07-07 17:29:20 +00:00
2007-11-06 13:29:53 +00:00
2006-01-02 02:57:54 +00:00
2007-06-11 17:38:27 +00:00
2006-02-20 02:06:37 +00:00
2006-07-17 19:30:30 +00:00
2007-08-20 15:16:27 +00:00