Click here to Skip to main content
15,895,740 members
Articles / Programming Languages / C++

A C++ Cross-Platform Thread Class

Rate me:
Please Sign up or sign in to vote.
4.56/5 (26 votes)
15 Nov 20034 min read 518.7K   1.8K   49  
Write portable object-oriented threads that work on Win32 and Posix-Compliant systems without modification.
#ifndef _Thread_
#define _Thread_

#include <errno.h>

#ifdef WIN32
  #include "Win32/Thread.h"
#else
  #include "Posix/Thread.h"
#endif

#endif // !_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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
I am a student at Portland State University in Portland, Oregon majoring in Mathematics and minoring in Computer Science and Physics.

Comments and Discussions