Click here to Skip to main content
15,904,153 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Need some idea or const way to do this? Pin
CPallini4-Jan-08 10:11
mveCPallini4-Jan-08 10:11 
GeneralRe: Need some idea or const way to do this? Pin
Hakan Bulut4-Jan-08 10:51
Hakan Bulut4-Jan-08 10:51 
GeneralRe: Need some idea or const way to do this? Pin
CPallini4-Jan-08 11:02
mveCPallini4-Jan-08 11:02 
GeneralRe: Need some idea or const way to do this? Pin
Hakan Bulut4-Jan-08 22:00
Hakan Bulut4-Jan-08 22:00 
QuestionControlling CCriticalSection unlock order? Pin
Rob Caldecott4-Jan-08 5:04
Rob Caldecott4-Jan-08 5:04 
AnswerRe: Controlling CCriticalSection unlock order? Pin
led mike4-Jan-08 5:17
led mike4-Jan-08 5:17 
AnswerRe: Controlling CCriticalSection unlock order? Pin
peterchen4-Jan-08 6:30
peterchen4-Jan-08 6:30 
AnswerRe: Controlling CCriticalSection unlock order? Pin
Matthew Faithfull4-Jan-08 7:43
Matthew Faithfull4-Jan-08 7:43 
No it sounds like what you need is a shared request queue. Each thread places an item on the queue containing an Event handle then waits on that handle, a worker thread takes each queue item in turn and sets the associated event. If you block the worker thread then all the others queue up as and when they need to but get released in order of oldest (longest waiting) first. The queue will need its own locking of course. If you're deparate I have some multi-threaded subscriber queue code knocking around (every subscribing thread gets to process every item exactly once) It's not very similar or very simple so you might be better looking elsewhere for examples. I'm disappearing for the weekend very shortly as well.

Nothing is exactly what it seems but everything with seems can be unpicked.

GeneralVideo libraries or controls Pin
dseverns54-Jan-08 4:59
professionaldseverns54-Jan-08 4:59 
GeneralRe: Video libraries or controls Pin
led mike4-Jan-08 5:22
led mike4-Jan-08 5:22 
GeneralRe: Video libraries or controls Pin
Mark Salsbery4-Jan-08 6:34
Mark Salsbery4-Jan-08 6:34 
QuestionRe: Video libraries or controls Pin
Hamid_RT4-Jan-08 18:12
Hamid_RT4-Jan-08 18:12 
GeneralMFC using WSAAsyncSelect to create asynchronous socket ... problem in creating hWnd [modified] Pin
drfankw4-Jan-08 4:38
drfankw4-Jan-08 4:38 
GeneralRe: MFC using WSAAsyncSelect to create asynchronous socket ... problem in creating hWnd Pin
led mike4-Jan-08 5:08
led mike4-Jan-08 5:08 
GeneralRe: MFC using WSAAsyncSelect to create asynchronous socket ... problem in creating hWnd Pin
drfankw4-Jan-08 5:32
drfankw4-Jan-08 5:32 
GeneralRe: MFC using WSAAsyncSelect to create asynchronous socket ... problem in creating hWnd Pin
led mike4-Jan-08 5:51
led mike4-Jan-08 5:51 
GeneralRe: MFC using WSAAsyncSelect to create asynchronous socket ... problem in creating hWnd Pin
drfankw4-Jan-08 6:33
drfankw4-Jan-08 6:33 
GeneralRe: MFC using WSAAsyncSelect to create asynchronous socket ... problem in creating hWnd Pin
Mark Salsbery4-Jan-08 6:40
Mark Salsbery4-Jan-08 6:40 
GeneralRe: MFC using WSAAsyncSelect to create asynchronous socket ... problem in creating hWnd Pin
led mike4-Jan-08 9:54
led mike4-Jan-08 9:54 
GeneralRe: MFC using WSAAsyncSelect to create asynchronous socket ... problem in creating hWnd Pin
Mark Salsbery4-Jan-08 10:08
Mark Salsbery4-Jan-08 10:08 
GeneralRe: MFC using WSAAsyncSelect to create asynchronous socket ... problem in creating hWnd Pin
led mike4-Jan-08 11:47
led mike4-Jan-08 11:47 
GeneralRe: MFC using WSAAsyncSelect to create asynchronous socket ... problem in creating hWnd Pin
Mark Salsbery4-Jan-08 13:30
Mark Salsbery4-Jan-08 13:30 
GeneralRe: MFC using WSAAsyncSelect to create asynchronous socket ... problem in creating hWnd Pin
led mike7-Jan-08 4:18
led mike7-Jan-08 4:18 
GeneralRe: MFC using WSAAsyncSelect to create asynchronous socket ... problem in creating hWnd Pin
Mark Salsbery7-Jan-08 6:14
Mark Salsbery7-Jan-08 6:14 
QuestionSTL sort throw exception? Pin
George_George4-Jan-08 4:06
George_George4-Jan-08 4: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.