Overview
Comment: | Fix #ifdef in +[OFThread yield]. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
f33274d615986f75eb197f47e57d343a |
User & Date: | js on 2011-02-09 18:20:50 |
Other Links: | manifest | tags |
Context
2011-02-09
| ||
18:23 | Add a cast so that some old compilers don't complain. check-in: 66fbb69b36 user: js tags: trunk | |
18:20 | Fix #ifdef in +[OFThread yield]. check-in: f33274d615 user: js tags: trunk | |
16:35 | Don't allow nil as argument for -[appendString:]. check-in: a3fef2953d user: js tags: trunk | |
Changes
Modified src/OFThread.m from [7cfc6bc1be] to [fb1d321236].
︙ | ︙ | |||
147 148 149 150 151 152 153 | #else Sleep(sec * 1000 + usec / 1000); #endif } + (void)yield { | | | | 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | #else Sleep(sec * 1000 + usec / 1000); #endif } + (void)yield { #ifdef OF_HAVE_SCHED_YIELD sched_yield(); #else [self sleepForTimeInterval: 0]; #endif } + (void)terminate { [self terminateWithObject: nil]; } |
︙ | ︙ |