Rev 788 | Rev 1156 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 788 | Rev 1103 | ||
|---|---|---|---|
| Line 188... | Line 188... | ||
| 188 | /* We use the timeout variant. */ |
188 | /* We use the timeout variant. */ |
| 189 | if (!context_save(&THREAD->sleep_timeout_context)) { |
189 | if (!context_save(&THREAD->sleep_timeout_context)) { |
| 190 | /* |
190 | /* |
| 191 | * Short emulation of scheduler() return code. |
191 | * Short emulation of scheduler() return code. |
| 192 | */ |
192 | */ |
| 193 | before_thread_runs(); |
- | |
| 194 | spinlock_unlock(&THREAD->lock); |
193 | spinlock_unlock(&THREAD->lock); |
| 195 | interrupts_restore(ipl); |
194 | interrupts_restore(ipl); |
| 196 | return ESYNCH_TIMEOUT; |
195 | return ESYNCH_TIMEOUT; |
| 197 | } |
196 | } |
| 198 | THREAD->timeout_pending = true; |
197 | THREAD->timeout_pending = true; |