1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

Add scm_yield to manual alongside yield

* doc/ref/api-scheduling.texi (Threads): Mention scm_yield.
This commit is contained in:
Andy Wingo 2016-11-01 19:58:06 +01:00
parent 4280c818c2
commit b2e7662ebe

View file

@ -105,6 +105,7 @@ Return @code{#t} if @var{thread} has exited, or @code{#f} otherwise.
@end deffn
@deffn {Scheme Procedure} yield
@deffnx {C Function} scm_yield (thread)
If one or more threads are waiting to execute, calling yield forces an
immediate context switch to one of them. Otherwise, yield has no effect.
@end deffn