offload
ThreadWorker 0.7
Free and open source class to offload a task to another thread more>> Free and open source class to offload a task to another thread
ThreadWorker is a class that aims to make it easy to offload a task to another thread and notify your application when youve completed the task.
Creating Multithreaded applications with Objective-C in Mac OS Xs Cocoa framework is easier than raw C code, but there are still some difficulties that ThreadWorker will help you overcome.
Enhancements
- Added ability to mark thread as cancelled.
- Changed the behavior when "longTask" takes a second argument. Instead of passing a proxy to the primary threads "self" it passes a references to the ThreadWorker. The recommended way to pass information from the primary, or originating, thread is to use an NSDictionary to pass in the Things Youll Need. See the Controller.m example.
- Changed threads termination behavior so that as soon as your "longTask:" is finished, the thread will exit. This means if you left anything on the NSRunLoop (or more likely an NSURL did it without your knowledge), it will get dumped.
- Page: 1 of 1
- 1