Click here to Skip to main content
15,901,666 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralSome Problem in Connection Points (MultiClients) Pin
shudingbo7-Nov-03 1:47
shudingbo7-Nov-03 1:47 
QuestionWhere is <Developers Workshop to COM and ATL 3.0 >? Pin
cr9996-Nov-03 17:55
cr9996-Nov-03 17:55 
GeneralATL/WTL DLL and the CMessageLoop* pLoop Pin
bryces6-Nov-03 13:38
bryces6-Nov-03 13:38 
GeneralRe: ATL/WTL DLL and the CMessageLoop* pLoop Pin
Michael Dunn6-Nov-03 16:51
sitebuilderMichael Dunn6-Nov-03 16:51 
Generalmultithreading deque<> question Pin
wibbik6-Nov-03 4:41
wibbik6-Nov-03 4:41 
GeneralRe: multithreading deque<> question Pin
geo_m6-Nov-03 5:26
geo_m6-Nov-03 5:26 
GeneralRe: multithreading deque<> question Pin
valikac6-Nov-03 5:51
valikac6-Nov-03 5:51 
GeneralRe: multithreading deque<> question Pin
Jeff Varszegi6-Nov-03 6:47
professionalJeff Varszegi6-Nov-03 6:47 
I don't think that you can do this without using a critical section. You have to synchronize access in some way. I'd be interested to hear more on your plan for this delimiter object-- how do you think that it will solve the problem of A and B both accessing the same memory at the same time? I'm really curious.

One tactic that you can take is to buffer things a little before even putting them in the queue. A can stack up a few things destined for the queue, and just copy them into the queue on a scheduled basis or when the buffer gets full. In my experience, it will still have to lock, but this can greatly decrease the per-element synchronization overhead. Of course, this can mean some tradeoffs like extra memory overhead, and another drawback is that the elements aren't immediately made available to thread B.

Thank you.

Jeff Varszegi
GeneralRe: multithreading deque<> question Pin
wibbik6-Nov-03 20:20
wibbik6-Nov-03 20:20 
GeneralRe: multithreading deque<> question Pin
Giles9-Nov-03 10:55
Giles9-Nov-03 10:55 
GeneralLinker error for vtMissing Pin
nigs_krec6-Nov-03 2:32
nigs_krec6-Nov-03 2:32 
GeneralRe: Linker error for vtMissing Pin
Brian Shifrin6-Nov-03 7:47
Brian Shifrin6-Nov-03 7:47 
General<vector> question Pin
Steve Messer5-Nov-03 7:02
Steve Messer5-Nov-03 7:02 
GeneralRe: <vector> question Pin
John M. Drescher5-Nov-03 7:17
John M. Drescher5-Nov-03 7:17 
GeneralRe: <vector> question Pin
Steve Messer5-Nov-03 7:59
Steve Messer5-Nov-03 7:59 
GeneralRe: &lt;vector&gt; question Pin
John M. Drescher5-Nov-03 8:08
John M. Drescher5-Nov-03 8:08 
GeneralRe: &lt;vector&gt; question Pin
Steve Messer5-Nov-03 8:15
Steve Messer5-Nov-03 8:15 
GeneralConvert habdle to object pointer Pin
abhay1013-Nov-03 18:55
abhay1013-Nov-03 18:55 
GeneralRe: Convert habdle to object pointer Pin
Abhishek Srivastava3-Nov-03 22:32
Abhishek Srivastava3-Nov-03 22:32 
GeneralRe: Convert habdle to object pointer Pin
abhay1014-Nov-03 19:02
abhay1014-Nov-03 19:02 
GeneralRe: Convert habdle to object pointer Pin
Steve S3-Nov-03 22:44
Steve S3-Nov-03 22:44 
GeneralRe: Convert handle to object pointer Pin
BobAshforth17-Dec-03 7:10
BobAshforth17-Dec-03 7:10 
GeneralProblem with GUID Pin
Gabriel.P.G3-Nov-03 16:35
Gabriel.P.G3-Nov-03 16:35 
GeneralRe: Problem with GUID Pin
umeca743-Nov-03 21:24
umeca743-Nov-03 21:24 
GeneralRe: Problem with GUID Pin
Gabriel.P.G4-Nov-03 5:57
Gabriel.P.G4-Nov-03 5:57 

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.