|
-
Jan 24th, 2011, 09:12 AM
#8
Re: [RESOLVED] Too much for the UI thread to handle
 Originally Posted by Evil_Giraffe
You don't need a synclock around queue access, as Enqueue and Dequeue are safe to be called at the same time as each other on separate threads.
Hmm I've been looking into this and not sure why you would say that as I can't find any reference on MSDN that confirms this. I did find this thread that suggests if you use Queue.Synchronised then the adding/removing is thread safe but other operations are not http://stackoverflow.com/questions/3...-thread-safety so I think I might just stick with the way I'm currently doing it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|