Branch: Tag:

2010-09-28

2010-09-28 16:06:35 by Martin Stjernholm <mast@lysator.liu.se>

Don't optimize away th_yield() calls in sleep(0).

Rev: src/builtin_functions.c:1.706
Rev: src/threads.c:1.283
Rev: src/threads.h:1.137

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.282 2010/02/18 14:50:41 srb Exp $ + || $Id: threads.c,v 1.283 2010/09/28 16:06:34 mast Exp $   */      #include "global.h"
972:    }   #endif    +  pike_thread_yield(); + } +  + PMOD_EXPORT void pike_thread_yield() + {    DEBUG_CHECK_THREAD();       THREADS_ALLOW();