Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Critique my simple thread pool

Name: Anonymous 2011-10-14 7:20

Learning parallel programing and pthreads so I tried my hand at writing a thread pool.

http://pastebin.com/ebrVWFa8

Name: Anonymous 2011-10-14 15:28

>>1
That's nice and all, but you're reinventing the wheel.

Just use libdispatch.

If you're on OSX or FreeBSD you're already set. With a Debian based OS, including Ubuntu and Linux Mint, just: $ sudo apt-get install libdispatch-dev.

Fedora is also getting it in the next major release.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List