I'm a little confused as to the proper use of critical sections in multithreaded applications. In my application there are several objects (some circular buffers and a serial port object) that are shared among threads. Should access of these objects always be placed within critical sections, or only at certain times? I suspect only at certain times because when I attempted to wrap each use with an EnterCriticalSection
/ LeaveCriticalSection
I ran into what seemed to be a deadlock condition. Any insight you may have would be appreciated. Thanks.
Multithreading and Critical Sections Use - C++
↧
↧
Trending Articles
More Pages to Explore .....