Click here to Skip to main content
15,905,563 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Make Main Thread sleep Pin
chandu00417-Oct-07 1:51
chandu00417-Oct-07 1:51 
GeneralRe: Make Main Thread sleep Pin
JudyL_MD17-Oct-07 1:51
JudyL_MD17-Oct-07 1:51 
GeneralRe: Make Main Thread sleep Pin
ThatsAlok17-Oct-07 2:01
ThatsAlok17-Oct-07 2:01 
GeneralRe: Make Main Thread sleep Pin
GauranG Shah17-Oct-07 2:28
GauranG Shah17-Oct-07 2:28 
GeneralRe: Make Main Thread sleep Pin
JudyL_MD17-Oct-07 2:42
JudyL_MD17-Oct-07 2:42 
GeneralRe: Make Main Thread sleep Pin
chandu00417-Oct-07 3:01
chandu00417-Oct-07 3:01 
GeneralRe: Make Main Thread sleep Pin
ThatsAlok17-Oct-07 20:30
ThatsAlok17-Oct-07 20:30 
AnswerRe: Make Main Thread sleep Pin
ThatsAlok17-Oct-07 1:30
ThatsAlok17-Oct-07 1:30 
Why you want to make Main Thread Sleep..? this is not good design. as in Sleep State main thread will process nothing. you should change you design to make MianThread do nothing instead of making it sleep.


GauranG33 wrote:
void ThreadProc(void){ fun();}


this will make your worker thread sleep not main thread. as function call is from worker thread not main thread






"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixture


cheers,
Alok Gupta
VC Forum Q&A :- I/IV
Support CRY- Child Relief and You

AnswerRe: Make Main Thread sleep Pin
David Crow17-Oct-07 3:36
David Crow17-Oct-07 3:36 
QuestionTerminating User Interface Thread Pin
neha.agarwal2716-Oct-07 23:18
neha.agarwal2716-Oct-07 23:18 
AnswerRe: Terminating User Interface Thread Pin
chandu00417-Oct-07 1:12
chandu00417-Oct-07 1:12 
AnswerRe: Terminating User Interface Thread Pin
ThatsAlok17-Oct-07 1:23
ThatsAlok17-Oct-07 1:23 
AnswerRe: Terminating User Interface Thread Pin
Hamid_RT17-Oct-07 2:25
Hamid_RT17-Oct-07 2:25 
GeneralRe: Terminating User Interface Thread Pin
ThatsAlok17-Oct-07 20:32
ThatsAlok17-Oct-07 20:32 
GeneralRe: Terminating User Interface Thread Pin
Hamid_RT17-Oct-07 21:13
Hamid_RT17-Oct-07 21:13 
QuestionRe: Terminating User Interface Thread Pin
David Crow17-Oct-07 3:34
David Crow17-Oct-07 3:34 
Questionhow to searching network and local drives Pin
trioum16-Oct-07 23:17
trioum16-Oct-07 23:17 
AnswerRe: how to searching network and local drives Pin
Iain Clarke, Warrior Programmer17-Oct-07 3:10
Iain Clarke, Warrior Programmer17-Oct-07 3:10 
QuestionRe: how to searching network and local drives Pin
David Crow17-Oct-07 3:28
David Crow17-Oct-07 3:28 
AnswerRe: how to searching network and local drives Pin
trioum17-Oct-07 21:07
trioum17-Oct-07 21:07 
QuestionProblem in Accessing CArray object Pin
Atul2316-Oct-07 22:53
Atul2316-Oct-07 22:53 
AnswerRe: Problem in Accessing CArray object Pin
chandu00416-Oct-07 22:55
chandu00416-Oct-07 22:55 
GeneralRe: Problem in Accessing CArray object Pin
Atul2316-Oct-07 23:05
Atul2316-Oct-07 23:05 
GeneralRe: Problem in Accessing CArray object Pin
chandu00416-Oct-07 23:15
chandu00416-Oct-07 23:15 
GeneralRe: Problem in Accessing CArray object Pin
Atul2317-Oct-07 0:47
Atul2317-Oct-07 0:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.