Re: Read file using multithreads
- From: "Chris P." <msdn@xxxxxxxxxxxx>
- Date: Sat, 28 Apr 2007 10:37:01 -0400
On Sat, 28 Apr 2007 07:30:02 -0700, hangaround wrote:
I wanna read a video file using multithreads, and I use critical section
to synchronize the access, thereby the UI would be blocked , and I dont know
why, Who can point me out?
Without more background I don't really understand the purpose of your
multiple read threads, however you can eliminate the problem by either
using overlapped IO or by having an open handle for each thread. That way
you don't need the file access synchronization.
UI is blocked anytime your UI thread (the message loop thread which is the
main thread by default) hits the critical section and blocks.
--
http://www.chrisnet.net/code.htm
[MS MVP for DirectShow / MediaFoundation]
.
- Prev by Date: Re: setting media type of sample grabber
- Next by Date: How to force preview to use hardware overlay?
- Previous by thread: setting media type of sample grabber
- Next by thread: Re: Read file using multithreads
- Index(es):
Relevant Pages
|