diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-06-26 12:54:33 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-07-30 09:11:13 +0200 |
commit | 0e3c59d65c3d1d3351103abf743aa9702452343c (patch) | |
tree | 39b7187c20bad43b43f0999d55c957d29c0b8adc /cpukit/score/src/threadq.c | |
parent | score: Add potpourri lock statistics (diff) | |
download | rtems-0e3c59d65c3d1d3351103abf743aa9702452343c.tar.bz2 |
score: Use a plain ticket lock for thread locks
This enables external libraries to use thread locks since they are
independent of the actual RTEMS build configuration, e.g. profiling
enabled or disabled.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/src/threadq.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/score/src/threadq.c b/cpukit/score/src/threadq.c index 27d4d5860e..fc81409924 100644 --- a/cpukit/score/src/threadq.c +++ b/cpukit/score/src/threadq.c @@ -60,4 +60,7 @@ void _Thread_queue_Initialize( the_thread_queue->operations = operations; _Thread_queue_Queue_initialize( &the_thread_queue->Queue ); +#if defined(RTEMS_SMP) + _SMP_lock_Stats_initialize( &the_thread_queue->Lock_stats, "Thread Queue" ); +#endif } |