diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-20 21:39:56 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-30 16:16:21 +0200 |
commit | 2581a563f9182dc2debdba97f33feee6d797e53a (patch) | |
tree | 97883371771f9a2905d159d8e11c0b2e9da0408c /cpukit/score/src/coresem.c | |
parent | rtems: Simplify rtems_semaphore_delete() (diff) | |
download | rtems-2581a563f9182dc2debdba97f33feee6d797e53a.tar.bz2 |
score: Add semaphore variants
Diffstat (limited to 'cpukit/score/src/coresem.c')
-rw-r--r-- | cpukit/score/src/coresem.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/cpukit/score/src/coresem.c b/cpukit/score/src/coresem.c index 2bdd81c76a..e928f3d3a5 100644 --- a/cpukit/score/src/coresem.c +++ b/cpukit/score/src/coresem.c @@ -21,18 +21,11 @@ #include <rtems/score/coresemimpl.h> void _CORE_semaphore_Initialize( - CORE_semaphore_Control *the_semaphore, - CORE_semaphore_Disciplines discipline, - uint32_t initial_value + CORE_semaphore_Control *the_semaphore, + uint32_t initial_value ) { the_semaphore->count = initial_value; _Thread_queue_Initialize( &the_semaphore->Wait_queue ); - - if ( discipline == CORE_SEMAPHORE_DISCIPLINES_PRIORITY ) { - the_semaphore->operations = &_Thread_queue_Operations_priority; - } else { - the_semaphore->operations = &_Thread_queue_Operations_FIFO; - } } |