12-09-2009 07:39 PM
Are there known issues with using Thread.yield(), especially when it is called on the event thread?
12-09-2009 08:12 PM
I don't think a Thread.yield will not give up the Event Lock, so I would not use it when running on the Event Thread.
I do use it elsewhere, where I think appropriate, though it is hard to be sure it is working as I would expect,
12-09-2009 08:17 PM
I can't think of a situation where Thread.yield() is appropriate for the event thread.
If you are trying this, then you probably really need to spawn a worker thread and allow the event thread to return to the dispatcher.
Is there a specific situation you are facing that you feel calls for this strategy?
12-09-2009 09:22 PM
Thanks.
I am just debugging a mysterious bug and I was trying to exclude possible causes, so I thought I should check the usage of yield as a potential cause.