summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/threadqimpl.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* score: PR2172: _Thread_queue_Extract()Sebastian Huber2014-04-011-9/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add _Thread_queue_Extract_with_return_code(). On SMP this sequence in _Thread_queue_Process_timeout() was broken: [...] /* * After we enable interrupts here, a lot may happen in the * meantime, e.g. nested interrupts may release the resource that * times out here. So we enter _Thread_queue_Extract() * speculatively. Inside this function we check the actual status * under ISR disable protection. This ensures that exactly one * executing context performs the extract operation (other parties * may call _Thread_queue_Dequeue()). If this context won, then * we have a timeout. * * We can use the_thread_queue pointer here even if * the_thread->Wait.queue is already set to NULL since the extract * operation will only use the thread queue discipline to select * the right extract operation. The timeout status is set during * thread queue initialization. */ we_did_it = _Thread_queue_Extract( the_thread_queue, the_thread ); if ( we_did_it ) { the_thread->Wait.return_code = the_thread_queue->timeout_status; } [...] In case _Thread_queue_Extract() successfully extracted a thread, then this thread may start execution on a remote processor immediately and read the the_thread->Wait.return_code before we update it here with the timeout status. Thus it observes a successful operation even if it timed out.
* score: _Thread_queue_Extract_with_proxy()Sebastian Huber2014-03-311-1/+1
| | | | Drop the return status, since it is nowhere used.
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-211-1/+1
|
* score: Delete unused function parameterSebastian Huber2013-08-261-4/+2
|
* score: PR2140: _Thread_queue_Extract()Sebastian Huber2013-08-261-3/+9
| | | | | Return if the executing context performed the extract operation since interrupts may interfere.
* score: _Thread_queue_Enqueue_with_handler()Sebastian Huber2013-08-231-4/+7
| | | | | Add thread parameter to _Thread_queue_Enqueue_with_handler() to avoid access to global _Thread_Executing.
* score: Create threadq implementation headerSebastian Huber2013-07-261-0/+428
Move implementation specific parts of tqdata.h, threadq.h and threadq.inl into new header file threadqimpl.h. The threadq.h contains now only the application visible API. Delete tqdata.h.