pike.git/
src/
threads.c
Branch:
Tag:
Non-build tags
All tags
No tags
2016-01-12
2016-01-12 18:09:27 by Per Hedbor <ph@opera.com>
01b9216dc7703fe549b03c4a7fa322d3f6af6371 (
17
lines) (+
9
/-
8
)
[
Show
|
Annotate
]
Branch:
8.1
inline is part of c99
We do have.. excessive amounts of inline, incidentally. :)
420:
#define SET_LOCKING_THREAD (debug_is_locked = 1, \ debug_locking_thread = th_self()) #define UNSET_LOCKING_THREAD (debug_is_locked = 0)
-
static
INLINE
void check_interpreter_lock (DLOC_DECL)
+
static void check_interpreter_lock (DLOC_DECL)
{ if (th_running) { THREAD_T self;
452:
#endif
-
PMOD_EXPORT
INLINE
void pike_low_lock_interpreter (DLOC_DECL)
+
PMOD_EXPORT void pike_low_lock_interpreter (DLOC_DECL)
{ /* The double locking here is to ensure that when a thread releases * the interpreter lock, a different thread gets it first. Thereby
468:
COMMA_DLOC_ARGS_OPT)); }
-
PMOD_EXPORT
INLINE
void pike_low_wait_interpreter (COND_T *cond COMMA_DLOC_DECL)
+
PMOD_EXPORT void pike_low_wait_interpreter (COND_T *cond COMMA_DLOC_DECL)
{ USE_DLOC_ARGS(); THREADS_FPRINTF (1, (stderr,
487:
cond COMMA_DLOC_ARGS_OPT)); }
-
PMOD_EXPORT
INLINE
int pike_low_timedwait_interpreter (COND_T *cond,
+
PMOD_EXPORT int pike_low_timedwait_interpreter (COND_T *cond,
long sec, long nsec COMMA_DLOC_DECL) {
527:
COMMA_DLOC_ARGS_OPT)); }
-
PMOD_EXPORT
INLINE
void pike_lock_interpreter (DLOC_DECL)
+
PMOD_EXPORT void pike_lock_interpreter (DLOC_DECL)
{ pike_low_lock_interpreter (DLOC_ARGS_OPT); if (threads_disabled) threads_disabled_wait (DLOC_ARGS_OPT); }
-
PMOD_EXPORT
INLINE
void pike_unlock_interpreter (DLOC_DECL)
+
PMOD_EXPORT void pike_unlock_interpreter (DLOC_DECL)
{ USE_DLOC_ARGS(); THREADS_FPRINTF (1, (stderr, "Releasing iplock" DLOC_PF(" @ ",) "\n"
542:
mt_unlock (&interpreter_lock); }
-
PMOD_EXPORT
INLINE
void pike_wait_interpreter (COND_T *cond COMMA_DLOC_DECL)
+
PMOD_EXPORT void pike_wait_interpreter (COND_T *cond COMMA_DLOC_DECL)
{ int owner = threads_disabled; pike_low_wait_interpreter (cond COMMA_DLOC_ARGS_OPT); if (!owner && threads_disabled) threads_disabled_wait (DLOC_ARGS_OPT); }
-
PMOD_EXPORT
INLINE
int pike_timedwait_interpreter (COND_T *cond,
+
PMOD_EXPORT int pike_timedwait_interpreter (COND_T *cond,
long sec, long nsec COMMA_DLOC_DECL) {