|
|
|
Date Posted: |
June 22nd, 1999
|
|
|
Last Updated: |
October 12th, 2000
|
|
|
License: |
Freeware |
|
|
Downloads: |
2,000 total; 1 recently |
|
|
Page Views: |
8,089 total |
|
|
User Rating: |
awaiting 10 votes |
 |
|
Jump to the Downloads section |
|
 |
 |
About ThreadMagic:
With this package you can start any function (even a a C++ member function) in a different thread with arbitrary parameters and all that in one single line! Plus there's a ThreadPool class, a cerr-like DebugStream (cdebug<<"foo"<<endl; and all thread will have a different window with their log)
Also there is a cool FunctionObject template in this package that can boundle a function with it's parameters into an object for common use trough virtual functions (abstraction of calling a function from how to do it practically).
And thare are handy thread classes: ThreadPrimitive, Thread, PeriodicThread, MouseDownThread. There's a handy thread pool class that reuses threads. There are several example projects included.
|
 |
|
 |
Latest Version |
 |
|
 |
| |
 |
|
Details about this version:
News:
Some surely, but it's mainly a maintenance update. I changed several things while working on the NewFS patch for OT. The readme is not uptodate, but MAKE SURE YOU READ IT! The most important is to remember that passed reference parameters are copied and pointers are not (the pointers are copied themselves). And don't pass params by value because that means three copy ctor calls, use references if you need to duplicate a param for the function that is to be started in a different thread...
Old news:
This version has some internal changes that make passing nontrivial types smarter. Also there's a LaunchInNewThread() and a NewFunctionObject() teplatized function collection to make our life much simpler. Enjoy!
|
| |
 |
|
Any Processor (120 KB) |
467 downloads |
|
 |
|
 |
 |
| |
  |
[rating: 10] |
|
 |
Hungary, Technical University of Budapest |
  |
[rating: 10] |
|
 |
ThreadMagic_3.4 |
|
|
| Add Additional Location |
 |
|
 |
|
| Source Included |
 |
 |
 |
 |
 |
| |
 |
 |
Like this app? Have questions or comments?
Why not tell the author? Use the "e-mail publisher" link to get in touch with the publisher; they usually love getting feedback.
|
|
|