Displaying 1 result from an estimated 1 matches for "threadsdisabled".
2004 Jul 22
0
Re: FXRuby and Threads (was: radiobuttons are weird in 1.2.x series)
...and a single message is processed, if available:
def nextMessage
# Pull off the first message (if there is one)
if @queueMutex.try_lock
message = @messageQueue.shift
@queueMutex.unlock
else
message = nil
end
return message
end
I checked it again, and with threadsDisabled the FXDataTargets/statusbar work perfectly and communication between clients is consistently instantaneous as far as my eyes can see (both clients and server on one machine). E.g. The Xs and Os in TIC-TAC-TOE seem to appear right away when placed on the opponent''s client (at least until I...