Portable Threading, Which Type? [Archive] - C Board

PDA

View Full Version : Portable Threading, Which Type?


DeepBlackMagic
10-11-2003, 11:24 AM
OK, Im looking for portable threading support (Working on both winblows and linux) that takes a function pointer void (*func)(void *) and a void pointer to pass to that function as arguements. Im not interested in ones with alot of overhead like required inter-thread messaging systems, etc. I want to call one function to make this happen, like CreateThread(bla,bla,funcptr,voidptrfuncdata,bla,b la,bla,bla); and boom its done. This is what i am seeking, who can put a name with my description?

twm
10-12-2003, 01:40 PM
Your best bet is to write wrapper functions around Windows threads and POSIX threads, then conditionally compile.