OSDN Git Service

2009-11-17 Andrew Haley <aph@redhat.com>
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Nov 2009 18:05:00 +0000 (18:05 +0000)
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Nov 2009 18:05:00 +0000 (18:05 +0000)
commitd7e983b3b8272b325affa37223913212f76cab54
tree20d1549cdc546ec2d35dc2b1c11cf122162ef5db
parenta64054c0c4fe41ecf6cb76e2e77f4274089768c6
2009-11-17  Andrew Haley  <aph@redhat.com>

* posix-threads.cc (park): Rewrite code to handle time.
Move mutex lock before the call to compare_and_swap to avoid a
race condition.
Add some assertions.
(unpark): Add an assertion.
(init): Move here from posix-threads.h.
* include/posix-threads.h (destroy): removed.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154265 138bc75d-0d04-0410-961f-82ee72b054a4
libjava/ChangeLog
libjava/include/posix-threads.h
libjava/posix-threads.cc