Differences From Artifact [fe6d085eae]:
- File src/OFThread.m — part of check-in [d7fd999fee] at 2019-09-01 12:50:08 on branch trunk — {condition,mutex,thread}.m: Set errno on error (user: js, size: 10585) [annotate] [blame] [check-ins using]
To Artifact [67276b0c18]:
- File
src/OFThread.m
— part of check-in
[77780c7596]
at
2019-09-01 15:29:31
on branch trunk
— OFThread: Allow specifying a name before starting
This allows specifying a name before the thread gets started, so that
the name can be decided by whoever starts the thread, rather than just
by the thread itself once it's running.This is especially useful as some operating systems do not support
changing the name of the thread once it's running. (user: js, size: 10645) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
411 412 413 414 415 416 417 | [_returnValue release]; } [self retain]; _running = OF_THREAD_RUNNING; | | > > | 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 | [_returnValue release]; } [self retain]; _running = OF_THREAD_RUNNING; if (!of_thread_new(&_thread, [_name cStringWithEncoding: [OFLocale encoding]], callMain, self, &_attr)) { [self release]; @throw [OFThreadStartFailedException exceptionWithThread: self errNo: errno]; } } |
︙ | ︙ |