// Sleep until woken (either by getting what we need, or a timer event)
Threads_int_WaitForStatusEnd( THREAD_STAT_SEMAPHORESLEEP );
// We're only woken when there's something avaliable (or a signal arrives)
#if DEBUG_TRACE_STATE || SEMAPHORE_DEBUG
// Sleep until woken (either by getting what we need, or a timer event)
Threads_int_WaitForStatusEnd( THREAD_STAT_SEMAPHORESLEEP );
// We're only woken when there's something avaliable (or a signal arrives)
#if DEBUG_TRACE_STATE || SEMAPHORE_DEBUG