Click here to Skip to main content
15,921,467 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: That sucks.. Pin
LiquidKnight4-Feb-03 7:57
LiquidKnight4-Feb-03 7:57 
GeneralRe: That sucks.. Pin
Jamie Hale4-Feb-03 8:37
Jamie Hale4-Feb-03 8:37 
GeneralRe: That sucks.. Pin
Rickard Andersson204-Feb-03 8:55
Rickard Andersson204-Feb-03 8:55 
GeneralRe: That sucks.. Pin
Paul M Watt4-Feb-03 21:20
mentorPaul M Watt4-Feb-03 21:20 
GeneralSignals and Threads debugging... Pin
-=jarl=-4-Feb-03 6:16
-=jarl=-4-Feb-03 6:16 
GeneralRe: Signals and Threads debugging... Pin
AlexO4-Feb-03 6:22
AlexO4-Feb-03 6:22 
GeneralRe: Signals and Threads debugging... Pin
-=jarl=-4-Feb-03 6:31
-=jarl=-4-Feb-03 6:31 
GeneralRe: Signals and Threads debugging... Pin
-=jarl=-4-Feb-03 10:41
-=jarl=-4-Feb-03 10:41 
Actually...there is a concrete problem here....

I have threads A, B, C and D and signals 1, 2, 3 and 4.
A waits for 1, B for 2,
C waits for 3, D for 4

I set signal 2 from thread A and....C wakes up!
This is why I would like to be able to know for certain that signal 2 is actually set.
(From the windows kernel's point of view )
Currently I have a debug-info structure stored with each signal, and set/reset/create/wait wrappers which update this information.
Such as;
waiting-thread id
number of waiting threads, ( is allways 1 in this case )
id of thread which last set this signal
id of thread which last cleared this signal
etc.

Imagine my frustration.... I know for certain that the two signals 2 and 3 are distinct.
I know for certain that C is waiting for 3, ( and not for 2 ).
I know for certain that I am going mad.

Any ideas, inspirational thoughts, haiku's or anything such which might
give me a push in the right direction would be much appreciated.


p.s.
Signal = Event, in Windows speak

p.p.s
ProcExp from the Sysinternals homepage doesn't do what I need. I am concerned now
that I have found out that the Windows Native API doesn't have any methods for
monitoring signals...


-=jarl=-
GeneralRe: Signals and Threads debugging... Pin
Alvaro Mendez4-Feb-03 10:52
Alvaro Mendez4-Feb-03 10:52 
GeneralRe: Signals and Threads debugging... Pin
-=jarl=-4-Feb-03 11:08
-=jarl=-4-Feb-03 11:08 
GeneralRe: Signals and Threads debugging... Pin
-=jarl=-4-Feb-03 11:26
-=jarl=-4-Feb-03 11:26 
GeneralRe: Signals and Threads debugging... Pin
Alvaro Mendez4-Feb-03 13:26
Alvaro Mendez4-Feb-03 13:26 
GeneralRe: draw rectangle selection Pin
Roger Allen4-Feb-03 5:59
Roger Allen4-Feb-03 5:59 
Generaldialog refresh Pin
Anonymous4-Feb-03 5:33
Anonymous4-Feb-03 5:33 
GeneralRe: dialog refresh Pin
Alvaro Mendez4-Feb-03 5:57
Alvaro Mendez4-Feb-03 5:57 
GeneralRe: dialog refresh Pin
Abbas_Riazi4-Feb-03 7:06
professionalAbbas_Riazi4-Feb-03 7:06 
GeneralRe: dialog refresh Pin
Alvaro Mendez4-Feb-03 8:10
Alvaro Mendez4-Feb-03 8:10 
GeneralRe: dialog refresh Pin
Anonymous4-Feb-03 21:42
Anonymous4-Feb-03 21:42 
GeneralRe: dialog refresh Pin
Abbas_Riazi5-Feb-03 0:26
professionalAbbas_Riazi5-Feb-03 0:26 
GeneralRe: dialog refresh Pin
Anonymous4-Feb-03 21:41
Anonymous4-Feb-03 21:41 
GeneralMSDN annoying prompts Pin
ed welch4-Feb-03 5:14
ed welch4-Feb-03 5:14 
Generaldraw rectangle selection Pin
jeremysay4-Feb-03 5:10
jeremysay4-Feb-03 5:10 
GeneralRe: draw rectangle selection Pin
Michael Dunn4-Feb-03 5:18
sitebuilderMichael Dunn4-Feb-03 5:18 
GeneralRe: draw rectangle selection Pin
jeremysay4-Feb-03 5:51
jeremysay4-Feb-03 5:51 
GeneralMFC... WM_PAINT message Pin
Mciccarone3574-Feb-03 4:48
Mciccarone3574-Feb-03 4:48 

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.