From 6bab0284947ba4c0e4028ea7703d90a8fba932b2 Mon Sep 17 00:00:00 2001 From: Andrew Haley Date: Tue, 17 Nov 2009 18:05:00 +0000 Subject: posix-threads.cc (park): Rewrite code to handle time. 2009-11-17 Andrew Haley * 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. From-SVN: r154265 --- libjava/include/posix-threads.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'libjava/include') diff --git a/libjava/include/posix-threads.h b/libjava/include/posix-threads.h index 806ee55..59e65f7 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); -- cgit v1.1