272
edits
m (→Interfaces) |
mNo edit summary |
||
| Line 110: | Line 110: | ||
When <code>dispatch(..., DISPATCH_SYNC)</code> is called on a <code>nsIDispatchTarget</code>, it first checks to see if the current thread is the same as the thread where the task would be run. If it is, then it just runs the task directly without queuing it up. However, if not, then it must queue up the task to be run the dispatch target processes its tasks. To avoid returning to the caller immediately, the method gets the current thread and calls its <code>runNextTask</code> method in a loop until it receives acknowledgement that the queued task has been run. | When <code>dispatch(..., DISPATCH_SYNC)</code> is called on a <code>nsIDispatchTarget</code>, it first checks to see if the current thread is the same as the thread where the task would be run. If it is, then it just runs the task directly without queuing it up. However, if not, then it must queue up the task to be run the dispatch target processes its tasks. To avoid returning to the caller immediately, the method gets the current thread and calls its <code>runNextTask</code> method in a loop until it receives acknowledgement that the queued task has been run. | ||
== Development == | |||
Development is occuring on the THREADS_20060213_BRANCH. See also {{bug|326273}}. | |||
== Comments (biesi) == | == Comments (biesi) == | ||
edits