Differences From Artifact [590ace3cab]:
- File
src/OFThread.m
— part of check-in
[e702135e17]
at
2019-09-01 16:53:45
on branch trunk
— Remove remaining uses of lrint()
It was used to convert a time interval into seconds and microseconds or
seconds and nanoseconds and introduced inaccuracies. (user: js, size: 10588) [annotate] [blame] [check-ins using]
To Artifact [4ed6327174]:
- File src/OFThread.m — part of check-in [8a2fa8eff4] at 2019-09-01 18:22:55 on branch trunk — Add +[OFThread isMainThread] (user: js, size: 10709) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
186 187 188 189 190 191 192 193 194 195 196 197 198 199 | return of_tlskey_get(threadSelfKey); } + (OFThread *)mainThread { return mainThread; } + (OFMutableDictionary *)threadDictionary { OFThread *thread = of_tlskey_get(threadSelfKey); if (thread == nil) return nil; | > > > > > > > > | 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 | return of_tlskey_get(threadSelfKey); } + (OFThread *)mainThread { return mainThread; } + (bool)isMainThread { if (mainThread == nil) return false; return (of_tlskey_get(threadSelfKey) == mainThread); } + (OFMutableDictionary *)threadDictionary { OFThread *thread = of_tlskey_get(threadSelfKey); if (thread == nil) return nil; |
︙ | ︙ |