make S_ithread_run() call S_ithread_free() in main context
authorDave Mitchell <davem@fdisolutions.com>
Sun, 14 Jan 2007 23:58:49 +0000 (23:58 +0000)
committerDave Mitchell <davem@fdisolutions.com>
Sun, 14 Jan 2007 23:58:49 +0000 (23:58 +0000)
commit46c5d8f143a90fd1492462389f22a61a11e6931c
tree812bcc044904018228822ee3a23c01882d838a47
parentae3fba3defe4ed89f6b20b720860824178f77f52
make S_ithread_run() call S_ithread_free() in main context

Fixes a race condition between detach clearing a thread's
interpreter, and S_ithread_run() freeing itself while
assuming that it's own interpreter still exists.

p4raw-id: //depot/perl@29810
ext/threads/threads.xs