Click here to Skip to main content
15,891,316 members
Articles / Programming Languages / C++

Switching threads

Rate me:
Please Sign up or sign in to vote.
5.00/5 (13 votes)
16 Sep 2007CPOL17 min read 64.7K   911   39  
How to switch the thread that a routine is running on.
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by ThreadSwitch.rc
//

#define IDS_APP_TITLE			103

#define IDR_MAINFRAME			128
#define IDD_THREADSWITCH_DIALOG	102
#define IDD_ABOUTBOX			103
#define IDM_ABOUT				104
#define IDM_EXIT				105
#define IDI_THREADSWITCH			107
#define IDI_SMALL				108
#define IDC_THREADSWITCH			109
#define IDC_MYICON				2
#ifndef IDC_STATIC
#define IDC_STATIC				-1
#endif
// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS

#define _APS_NO_MFC					130
#define _APS_NEXT_RESOURCE_VALUE	129
#define _APS_NEXT_COMMAND_VALUE		32771
#define _APS_NEXT_CONTROL_VALUE		1000
#define _APS_NEXT_SYMED_VALUE		110
#endif
#endif

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
Microsoft
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions