pike.git/
src/
threads.c
Branch:
Tag:
Non-build tags
All tags
No tags
2009-03-13
2009-03-13 21:03:47 by Martin Stjernholm <mast@lysator.liu.se>
307b938c37ef414f4dd3e30c26878f87a7d348e9 (
8
lines) (+
7
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Added a FIXME about getting rid of the yield call.
Rev: src/threads.c:1.276
2:
|| This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: threads.c,v 1.
275
2009/03/13
16
:
22
:
31
mast Exp $
+
|| $Id: threads.c,v 1.
276
2009/03/13
21
:
03
:
47
mast Exp $
*/ #include "global.h"
958:
THREADS_ALLOW(); /* Allow other threads to run */
+
/* FIXME: Ought to use condition vars or something to get another
+
* thread to run. yield functions are notoriously unreliable and
+
* poorly defined. It might not really yield we need it to. It might
+
* make us yield to another process instead of just another thread.
+
* It might even make us sleep for a short while. */
th_yield(); THREADS_DISALLOW();