Message-ID: <
20020514224947.F25049@fdgroup.com>
p4raw-id: //depot/perl@16599
our @ISA = qw(Exporter DynaLoader);
-our %EXPORT_TAGS = ( all => [qw()]);
+our %EXPORT_TAGS = ( all => [qw(yield)]);
our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
This will tell the OS to let this thread yield CPU time to other threads.
However this is highly depending on the underlying thread implementation.
+You may do C<use threads qw(yield)> then use just a bare C<yield> in your
+code.
+
=item threads->list();
This will return a list of all non joined, non detached threads.
}
void
-ithread_yield(ithread *thread)
+yield(thread = 'threads')
+CODE:
+{
+ YIELD;
+}
+
void
ithread_detach(ithread *thread)