summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/condinit.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-22 14:37:13 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-27 08:50:41 +0200
commit7f4ee2b4ae39928ab5f449048e562ef6b2c5d17d (patch)
treeec62caff9b95826169b43cc8a8e66b24fa861015 /cpukit/posix/src/condinit.c
parenttelnetd: Fix warnings (diff)
downloadrtems-7f4ee2b4ae39928ab5f449048e562ef6b2c5d17d.tar.bz2
posix: Avoid Giant lock for condition variables
Update #2555.
Diffstat (limited to 'cpukit/posix/src/condinit.c')
-rw-r--r--cpukit/posix/src/condinit.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/cpukit/posix/src/condinit.c b/cpukit/posix/src/condinit.c
index f4aeae657d..dde400f58d 100644
--- a/cpukit/posix/src/condinit.c
+++ b/cpukit/posix/src/condinit.c
@@ -18,13 +18,7 @@
#include "config.h"
#endif
-#include <pthread.h>
-#include <errno.h>
-
-#include <rtems/system.h>
-#include <rtems/score/watchdog.h>
#include <rtems/posix/condimpl.h>
-#include <rtems/posix/muteximpl.h>
/**
* 11.4.2 Initializing and Destroying a Condition Variable,
@@ -57,11 +51,7 @@ int pthread_cond_init(
return ENOMEM;
}
- the_cond->process_shared = the_attr->process_shared;
-
- the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX;
-
- _Thread_queue_Initialize( &the_cond->Wait_queue );
+ _POSIX_Condition_variables_Initialize( the_cond );
_Objects_Open_u32(
&_POSIX_Condition_variables_Information,