summaryrefslogtreecommitdiff
path: root/libjava/include
diff options
context:
space:
mode:
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-17 18:05:00 +0000
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-17 18:05:00 +0000
commitd7e983b3b8272b325affa37223913212f76cab54 (patch)
tree20d1549cdc546ec2d35dc2b1c11cf122162ef5db /libjava/include
parenta64054c0c4fe41ecf6cb76e2e77f4274089768c6 (diff)
downloadgcc-d7e983b3b8272b325affa37223913212f76cab54.tar.gz
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
Diffstat (limited to 'libjava/include')
-rw-r--r--libjava/include/posix-threads.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/libjava/include/posix-threads.h b/libjava/include/posix-threads.h
index 806ee556011..59e65f74499 100644
--- a/libjava/include/posix-threads.h
+++ b/libjava/include/posix-threads.h
@@ -375,13 +375,6 @@ struct ParkHelper
};
inline void
-ParkHelper::init ()
-{
- pthread_mutex_init (&mutex, NULL);
- pthread_cond_init (&cond, NULL);
-}
-
-inline void
ParkHelper::destroy ()
{
pthread_mutex_destroy (&mutex);