Click here to Skip to main content
15,867,453 members
Articles / Programming Languages / C++

Create a thread from global\static void returning a function with any type and number of arguments

Rate me:
Please Sign up or sign in to vote.
3.00/5 (1 vote)
9 Nov 2007CPOL3 min read 31.6K   103   11  
This is a macro which takes the name of any void returning global\static procedure, followed by the list of arguments to be passed to that procedure, and invokes the procedure with the arguments supplied, in a new thread.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions