Click here to Skip to main content
15,927,514 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Searching hex array Pin
chandu00412-Oct-07 0:57
chandu00412-Oct-07 0:57 
QuestionFlow is not passing in a worker thread Pin
neha.agarwal2711-Oct-07 21:08
neha.agarwal2711-Oct-07 21:08 
AnswerRe: Flow is not passing in a worker thread Pin
Karismatic11-Oct-07 21:29
Karismatic11-Oct-07 21:29 
AnswerRe: Flow is not passing in a worker thread Pin
chandu00411-Oct-07 21:41
chandu00411-Oct-07 21:41 
GeneralRe: Flow is not passing in a worker thread Pin
neha.agarwal2711-Oct-07 21:45
neha.agarwal2711-Oct-07 21:45 
GeneralRe: Flow is not passing in a worker thread Pin
chandu00411-Oct-07 21:59
chandu00411-Oct-07 21:59 
GeneralRe: Flow is not passing in a worker thread Pin
neha.agarwal2711-Oct-07 23:11
neha.agarwal2711-Oct-07 23:11 
GeneralRe: Flow is not passing in a worker thread Pin
chandu00411-Oct-07 23:24
chandu00411-Oct-07 23:24 
yah, got your problem.
then you must change your architecture, in such a way, that, the timeout monitor thread is not common for all the threads.
so implement as follows.
thread1()//this thread may be having somany instances
{
create thread2();//which monitors the thread 1 for the timeout value.
-------
------
--------
flag=1;
api1;
flag=0;
--------
}
thread2()
{
you try to frame this logic.
}
here, for each thread1, a child thread(thread2) is created, which monitors its parent's(thread1's) timeout, and kills it if it is not responding in a specified timeout, and also terminates itself.

Suggestion to the members:
prefix your main thread subject with [SOLVED] if it is solved.
chandu.

GeneralRe: Flow is not passing in a worker thread Pin
chandu00412-Oct-07 3:15
chandu00412-Oct-07 3:15 
GeneralRe: Flow is not passing in a worker thread Pin
neha.agarwal2712-Oct-07 18:15
neha.agarwal2712-Oct-07 18:15 
QuestionHow to support 128 dpi and 192 dpi as well? Pin
ttarantula11-Oct-07 20:52
ttarantula11-Oct-07 20:52 
AnswerRe: How to support 128 dpi and 192 dpi as well? Pin
jhwurmbach11-Oct-07 23:27
jhwurmbach11-Oct-07 23:27 
GeneralRe: How to support 128 dpi and 192 dpi as well? [modified] Pin
ttarantula11-Oct-07 23:44
ttarantula11-Oct-07 23:44 
QuestionError: Pin
Jhony george11-Oct-07 19:34
Jhony george11-Oct-07 19:34 
QuestionRe: Error: Pin
Nelek11-Oct-07 20:35
protectorNelek11-Oct-07 20:35 
AnswerRe: Error: Pin
Jhony george11-Oct-07 20:46
Jhony george11-Oct-07 20:46 
AnswerRe: Error: Pin
Michel_Huang11-Oct-07 21:04
Michel_Huang11-Oct-07 21:04 
GeneralRe: Error: Pin
Jhony george11-Oct-07 21:38
Jhony george11-Oct-07 21:38 
QuestionExisting Project including problem Pin
ashishbhatt11-Oct-07 19:00
ashishbhatt11-Oct-07 19:00 
AnswerRe: Existing Project including problem Pin
Michael10111-Oct-07 19:04
Michael10111-Oct-07 19:04 
GeneralRe: Existing Project including problem Pin
ashishbhatt11-Oct-07 19:16
ashishbhatt11-Oct-07 19:16 
GeneralRe: Existing Project including problem Pin
zakkas248311-Oct-07 19:26
zakkas248311-Oct-07 19:26 
GeneralRe: Existing Project including problem Pin
ashishbhatt11-Oct-07 19:39
ashishbhatt11-Oct-07 19:39 
AnswerRe: Existing Project including problem Pin
User 58385211-Oct-07 19:05
User 58385211-Oct-07 19:05 
AnswerRe: Existing Project including problem Pin
Paresh Chitte11-Oct-07 19:06
Paresh Chitte11-Oct-07 19:06 

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.