Rev 15 | Rev 382 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 15 | Rev 25 | ||
---|---|---|---|
Line 164... | Line 164... | ||
164 | /* We use the timeout variant. */ |
164 | /* We use the timeout variant. */ |
165 | if (!context_save(&THREAD->sleep_timeout_context)) { |
165 | if (!context_save(&THREAD->sleep_timeout_context)) { |
166 | /* |
166 | /* |
167 | * Short emulation of scheduler() return code. |
167 | * Short emulation of scheduler() return code. |
168 | */ |
168 | */ |
- | 169 | before_thread_runs(); |
|
169 | spinlock_unlock(&THREAD->lock); |
170 | spinlock_unlock(&THREAD->lock); |
170 | cpu_priority_restore(pri); |
171 | cpu_priority_restore(pri); |
171 | return ESYNCH_TIMEOUT; |
172 | return ESYNCH_TIMEOUT; |
172 | } |
173 | } |
173 | THREAD->timeout_pending = 1; |
174 | THREAD->timeout_pending = 1; |