OSDN Git Service

* shm.cc: Include sync.h
authorcorinna <corinna>
Tue, 6 Nov 2007 13:29:53 +0000 (13:29 +0000)
committercorinna <corinna>
Tue, 6 Nov 2007 13:29:53 +0000 (13:29 +0000)
commit36edb60d37f452ebc9ac76176517d2d0e0c2f4ff
tree5a661a718a84c9f1406027126c545f22ff054dff
parent1e61355de0ca25814a8c9134cba14556a036c989
* shm.cc: Include sync.h
(struct shm_shmid_list): Add ref_count member.
(struct shm_attached_list): Remove hdl and size members.  Add a parent
member pointing to referenced shm_shmid_list entry.
(shm_guard): New muto.
(SLIST_LOCK): Define.
(SLIST_UNLOCK): Define.
(fixup_shms_after_fork): Use hdl and size members of parent
shm_shmid_list entry.
(shmat): Access sequential bookkeeping lists in a thread safe way.
Accommodate change in list element layout.  Align comments.
(shmctl): Ditto.
(shmdt): Ditto.
(shmget): Ditto.
winsup/cygwin/ChangeLog
winsup/cygwin/shm.cc