LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

What can cause the scheduler to reschedule the same thread(task)?

It's unfortunate that NI calls it a "thread safe queue" if it's not thread safe, which is the case if it can only handle a single writer.  Are we sure that it can't? - the other NI libraries are truly thread safe, though some of them had some growing pains (NI-Daq for example, wasn't really thread safe until it got a major rewrite some years ago).   NI claims that the utility library is truly thread safe.

If you're multi-threading within a single process, Win32 critical sections work so easily and so well most people find that they're hard to beat, once you learn how to use them, which isn't that hard. 

Hayes

 

 

0 Kudos
Message 11 of 12
(1,017 Views)
Reading this forum is so educational.  It had never ocured to me that a thread safe queue should be restricted to allow only one writer and reader.  I don't think I have ever designed anything that way, but I use thread safe queues a lot, and I was probably going to step in that one one sooner or later.  Great thread guys, very informative.
0 Kudos
Message 12 of 12
(985 Views)