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

C / C++ / MFC

 
GeneralRe: Question on dialog create Pin
Alex_Y26-Apr-05 8:01
Alex_Y26-Apr-05 8:01 
GeneralThread lock Pin
Alex_Y26-Apr-05 5:49
Alex_Y26-Apr-05 5:49 
GeneralRe: Thread lock Pin
Axter26-Apr-05 7:46
professionalAxter26-Apr-05 7:46 
GeneralRe: Thread lock Pin
Alex_Y26-Apr-05 7:58
Alex_Y26-Apr-05 7:58 
GeneralRe: Thread lock Pin
Bob Stanneveld26-Apr-05 10:31
Bob Stanneveld26-Apr-05 10:31 
GeneralRe: Thread lock Pin
26-Apr-05 10:49
suss26-Apr-05 10:49 
GeneralRe: Thread lock Pin
Bob Stanneveld27-Apr-05 8:29
Bob Stanneveld27-Apr-05 8:29 
GeneralRe: Thread lock Pin
Alex_Y27-Apr-05 10:09
Alex_Y27-Apr-05 10:09 
You know what is funny part. This is not my thread this is third party component. For me is not important why something happend with component what I need to do. I need to detect which hang first and kill it. If kill inocent thread which part of the chain it will be bad. Thats why I need to know which thread is hang first. I have wrapper thread around component which communicates with componet. So if my wrapper hand I need to kill it. Problem is that other wrapper thread connected to each other. So since one componet hung all my wrapper thread hang. I have some solution which is not so elegant.

Create global map key: thread ID value cpu tick count.
Than put in the wrapper thread waitforsingleobject with timeout 1 s.
After waitforsingleobject call GetTickCount and save value in the map.
After some threads hang I will find IDs of hung threads and find which of them has minimal CPU count. Which means that tread was polled last. I need to play with timing. But that waht I have now.

Thanks a lot anyway.

Alex
Generalsynchronising objects using threads Pin
napoleaninlondon26-Apr-05 5:39
napoleaninlondon26-Apr-05 5:39 
GeneralRe: synchronising objects using threads Pin
Axter26-Apr-05 7:49
professionalAxter26-Apr-05 7:49 
GeneralMy directx sdk lacks a folder!!! Pin
yeetins26-Apr-05 5:35
yeetins26-Apr-05 5:35 
GeneralAbout scrollbar of CScrollView Pin
cash57626-Apr-05 5:12
cash57626-Apr-05 5:12 
GeneralRe: About scrollbar of CScrollView Pin
Peter Ritchie26-Apr-05 16:18
Peter Ritchie26-Apr-05 16:18 
GeneralRe: About scrollbar of CScrollView Pin
cash57626-Apr-05 18:19
cash57626-Apr-05 18:19 
GeneralRe: About scrollbar of CScrollView Pin
PJ Arends26-Apr-05 18:56
professionalPJ Arends26-Apr-05 18:56 
GeneralRe: About scrollbar of CScrollView Pin
cash57626-Apr-05 19:28
cash57626-Apr-05 19:28 
GeneralRe: About scrollbar of CScrollView Pin
PJ Arends26-Apr-05 20:12
professionalPJ Arends26-Apr-05 20:12 
GeneralIs their a easier way to make windows forms inc++ Pin
FocusedWolf26-Apr-05 5:04
FocusedWolf26-Apr-05 5:04 
GeneralRe: Is their a easier way to make windows forms inc++ Pin
toxcct26-Apr-05 5:53
toxcct26-Apr-05 5:53 
GeneralMFC DLL Pin
Manoj Jangid26-Apr-05 4:54
Manoj Jangid26-Apr-05 4:54 
GeneralProblem with vertical scrolling in listview Pin
Paul Vickery26-Apr-05 4:25
professionalPaul Vickery26-Apr-05 4:25 
GeneralRe: Problem with vertical scrolling in listview Pin
PJ Arends26-Apr-05 12:25
professionalPJ Arends26-Apr-05 12:25 
GeneralRe: Problem with vertical scrolling in listview Pin
Paul Vickery27-Apr-05 2:24
professionalPaul Vickery27-Apr-05 2:24 
GeneralChanging font sizes in c++ Pin
garysrobbo26-Apr-05 2:08
garysrobbo26-Apr-05 2:08 
GeneralRe: Changing font sizes in c++ Pin
ThatsAlok26-Apr-05 2:19
ThatsAlok26-Apr-05 2:19 

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.