Click here to Skip to main content
13,352,161 members (71,373 online)
Click here to Skip to main content


13 bookmarked
Posted 15 Oct 2006

Cross Platform Threads

, 15 Oct 2006
A cross platform thread class.
** FILE:			ThreadTest.cpp

** DESCRIPTION: 	Main file. 

** AUTHOR:			Amit Gupta

** CREATED:			07-OCT-2006

#include <iostream>
#include "XPThreads.h"

using namespace std;

unsigned long Entry (void* param);

unsigned long Entry (void* param)
#pragma unused(param) 

	cout<<"In the thread" << endl;
	return NULL;

int main()
	cout << "Thread is about to execute" << endl;
	XPThreads* ptrThread = new XPThreads(Entry);
	delete ptrThread;

	cout << " Thread execution finish" << endl;
	return 0;

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.


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


About the Author

Amit Gupta MDS
Product Manager MetaDesign Solutions
India India
Senior Software Developer with special skills in Developing Applications for Macintosh and Windows.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.180111.1 | Last Updated 16 Oct 2006
Article Copyright 2006 by Amit Gupta MDS
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid