‎10-21-2014 03:36 PM
You're right. But the problem that causes in my server is the race condition when I try to use an other Queue to get the command coming from the client( second loop) and Dequeue it in the Top loop. Because the top loop originally is Enqueueing data for the second loop to grab. by Implementing an other queue, It will not Enqueue anything since It'll be waiting for the data from the second loop to dequeue
‎10-21-2014 03:48 PM
Notifiers can be used.
And don't forget about timeouts.
‎10-21-2014 04:23 PM
tried it.. It didnt work either
‎10-21-2014 08:50 PM
Did you look at timeouts.
I'm not saying you can't use globals. Just that they are more known for causing race conditions. It is even more likely someone will use them incorrectly then using a queue incorrectly.
If you are careful and know what you are doing, they can be effective.
‎10-22-2014 02:39 PM
I tried Using Both Queue and notifier, the timeouts avoid the race conditions but the Enqueue or send notification vis give me error 1. Saying an input parameter is invalid. I check my data type and data being sent, they are all the same.
‎10-22-2014 03:06 PM
I'd have to see the latest version of your code before I could figure that out.
‎10-22-2014 03:46 PM - last edited on ‎10-26-2015 04:34 PM by LiliMcDonald
My apologies. Here's the latest version
Admin Note - VIs removed per user's request.
‎10-23-2014 08:44 AM
@RavensFan, did you get my latest update?
‎10-23-2014 08:53 AM
It looks like the same files as before. It still has all of those awkward queue manipulations.
‎10-23-2014 09:22 AM - last edited on ‎10-26-2015 04:34 PM by LiliMcDonald
MY apologies. Here's the latest
Admin Note - VIs removed per user's request.