Click here to Skip to main content
15,881,139 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.

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

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