[issue14569] pystate.c #ifdef ordering problem

Jim Jewett report at bugs.python.org
Thu Apr 12 23:52:42 CEST 2012


Jim Jewett <jimjjewett at gmail.com> added the comment:

http://hg.python.org/cpython/file/0f114b855824/Python/pystate.c#l25


#ifdef WITH_THREAD
#include "pythread.h"
static PyThread_type_lock head_mutex = NULL; /* Protects interp->tstate_head */
#define HEAD_INIT() (void)(head_mutex || (head_mutex = PyThread_allocate_lock()))
#define HEAD_LOCK() PyThread_acquire_lock(head_mutex, WAIT_LOCK)
#define HEAD_UNLOCK() PyThread_release_lock(head_mutex)
 
#ifdef __cplusplus
extern "C" {
#endif

----------
priority: normal -> low
stage:  -> needs patch
type:  -> compile error

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14569>
_______________________________________


More information about the Python-bugs-list mailing list