289 |
} |
} |
290 |
|
|
291 |
/** |
/** |
292 |
* Get the currently executing Thread. |
* Get the currently executing Thread. In the situation that the |
293 |
|
* currently running thread was created by native code and doesn't |
294 |
|
* have an associated Thread object yet, currentThread() should set |
295 |
|
* a flag and then attempt to construct and return a new Thread object. |
296 |
|
* When currentThread() is invoked again recursively by the Thread |
297 |
|
* constructor, the flag will already be set and in that second case |
298 |
|
* currentThread() should just return null. currentThread() should not |
299 |
|
* return a non-null value until after the constructor has returned. |
300 |
* |
* |
301 |
* @return the currently executing Thread |
* @return the currently executing Thread |
302 |
*/ |
*/ |