Click here to Skip to main content
15,917,062 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Kill a thread Pin
bouli1-Apr-05 2:43
bouli1-Apr-05 2:43 
GeneralRe: Kill a thread Pin
toxcct1-Apr-05 2:49
toxcct1-Apr-05 2:49 
GeneralRe: Kill a thread Pin
bouli1-Apr-05 3:10
bouli1-Apr-05 3:10 
GeneralRe: Kill a thread Pin
toxcct1-Apr-05 3:19
toxcct1-Apr-05 3:19 
GeneralRe: Kill a thread Pin
bouli1-Apr-05 3:25
bouli1-Apr-05 3:25 
GeneralRe: Kill a thread Pin
ThatsAlok1-Apr-05 18:35
ThatsAlok1-Apr-05 18:35 
GeneralRe: Kill a thread Pin
eli150219791-Apr-05 3:10
eli150219791-Apr-05 3:10 
GeneralRe: Kill a thread Pin
bouli1-Apr-05 3:17
bouli1-Apr-05 3:17 
the thread just call the ReadFile API. So, if nothing comes, the ReadFile API waits indefinitly. Thus, I can't use OVERLAPPED because it is not supported by the driver. So, I can use only synchronous IOs in my thread. The way I want to handle the ReadFile timeouts (it's not serial IOs) is to use the ReadFile API in a thread and the caller create and destroy the thread after an amount of time while nothing comes. If something comes, the thread finish itself naturally.

I can create the thread, but I don't know how I can destroy the thread FROM the caller. not inside the thread itself.


Best regards.





There is no spoon.
GeneralRe: Kill a thread Pin
BadJerry1-Apr-05 3:47
BadJerry1-Apr-05 3:47 
GeneralRe: Kill a thread Pin
bouli1-Apr-05 3:50
bouli1-Apr-05 3:50 
GeneralRe: Kill a thread Pin
Blake Miller1-Apr-05 4:55
Blake Miller1-Apr-05 4:55 
GeneralRe: Kill a thread Pin
bouli1-Apr-05 5:05
bouli1-Apr-05 5:05 
GeneralRe: Kill a thread Pin
bouli1-Apr-05 5:05
bouli1-Apr-05 5:05 
GeneralRe: Kill a thread Pin
David Crow1-Apr-05 3:56
David Crow1-Apr-05 3:56 
GeneralDialog resource Pin
The Professor1-Apr-05 2:08
The Professor1-Apr-05 2:08 
GeneralRe: Dialog resource Pin
toxcct1-Apr-05 2:15
toxcct1-Apr-05 2:15 
GeneralRe: Dialog resource Pin
The Professor1-Apr-05 12:13
The Professor1-Apr-05 12:13 
GeneralRe: Dialog resource Pin
ThatsAlok1-Apr-05 2:17
ThatsAlok1-Apr-05 2:17 
GeneralRe: Dialog resource Pin
David Crow1-Apr-05 3:58
David Crow1-Apr-05 3:58 
GeneralRe: Dialog resource Pin
The Professor1-Apr-05 12:20
The Professor1-Apr-05 12:20 
GeneralRe: Dialog resource Pin
ThatsAlok1-Apr-05 18:05
ThatsAlok1-Apr-05 18:05 
GeneralRe: Dialog resource Pin
The Professor2-Apr-05 18:43
The Professor2-Apr-05 18:43 
GeneralAbout Windows Explorer-style TreeView Pin
Kim Myong1-Apr-05 1:54
Kim Myong1-Apr-05 1:54 
GeneralRe: About Windows Explorer-style TreeView Pin
Alexander M.,1-Apr-05 2:54
Alexander M.,1-Apr-05 2:54 
GeneralRe: About Windows Explorer-style TreeView Pin
Kim Myong1-Apr-05 3:41
Kim Myong1-Apr-05 3:41 

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.