diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-12-01 20:42:48 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-12-02 12:41:03 +0100 |
commit | 5b6c290ed0fae8f9afd343c891e6d3650ef22492 (patch) | |
tree | f01c2825980599091959ff403c98fb95ee5851d3 /testsuites/sptests/spthreadq01 | |
parent | posix: Fix typo (diff) | |
download | rtems-5b6c290ed0fae8f9afd343c891e6d3650ef22492.tar.bz2 |
score: Initialize thread queue context early
Initialize thread queue context early preferably outside the critical
section.
Remove implicit _Thread_queue_Context_initialize() from
_Thread_Wait_acquire().
Diffstat (limited to 'testsuites/sptests/spthreadq01')
-rw-r--r-- | testsuites/sptests/spthreadq01/init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuites/sptests/spthreadq01/init.c b/testsuites/sptests/spthreadq01/init.c index afaa6527e0..8f02e4d650 100644 --- a/testsuites/sptests/spthreadq01/init.c +++ b/testsuites/sptests/spthreadq01/init.c @@ -71,6 +71,7 @@ static rtems_id get_wait_id(test_context *ctx) Thread_queue_Context queue_context; rtems_id id; + _Thread_queue_Context_initialize(&queue_context); _Thread_Wait_acquire(ctx->master, &queue_context); id = _Thread_Wait_get_id(ctx->master); _Thread_Wait_release(ctx->master, &queue_context); |