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-12-11 19:59:06 +00:00
2007-06-14 16:02:32 +00:00
2007-09-08 10:51:37 +00:00
2005-06-01 18:24:31 +00:00
2006-07-25 19:23:23 +00:00
2007-11-27 14:45:14 +00:00
2005-07-26 00:55:42 +00:00
2005-03-28 21:58:23 +00:00
2004-09-14 08:29:12 +00:00
2005-08-08 15:00:39 +00:00
2005-11-10 21:17:15 +00:00
2005-12-03 05:01:51 +00:00
2006-08-07 19:29:14 +00:00
2006-05-28 15:50:14 +00:00
2005-08-08 09:45:42 +00:00
2007-01-28 11:27:05 +00:00
2006-01-09 12:41:54 +00:00
2006-10-17 17:34:56 +00:00
2007-06-21 15:57:54 +00:00
2005-06-10 12:11:35 +00:00
2005-02-22 19:45:41 +00:00
2007-10-10 16:54:09 +00:00
2006-02-13 19:01:32 +00:00
2007-02-15 17:49:25 +00:00
2007-02-01 15:54:40 +00:00
2007-02-07 17:22:40 +00:00
2006-12-11 19:59:06 +00:00
2007-06-17 00:31:27 +00:00
2007-02-20 15:48:04 +00:00
2007-04-06 08:25:28 +00:00
2007-01-05 15:09:22 +00:00
2006-02-02 22:46:37 +00:00