view modules/cond @ 17182:10268a7a6854

cond, lock, thread: better 'inline' * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE): * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE): New macros. Use them instead of static inline, for header functions. * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove) (gl_waitqueue_notify_first, gl_waitqueue_notify_all): * lib/glthread/lock.c (gl_waitqueue_init) (gl_waitqueue_notify_first, gl_waitqueue_notify_all): * lib/glthread/thread.c (get_current_thread_handle): Change 'static inline' to 'inline'. * lib/glthread/cond.h, lib/glthread/thread.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END. * m4/cond.m4 (gl_COND): * m4/lock.m4 (gl_PREREQ_LOCK): * m4/thread.m4 (gl_THREAD): Do not require AC_C_INLINE. * modules/cond, modules/thread (Depends-on): Add extern-inline.
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 20 Nov 2012 22:25:08 -0800
parents 04756a28484d
children
line wrap: on
line source

Description:
Condition variables for multithreading.

Files:
lib/glthread/cond.h
lib/glthread/cond.c
m4/cond.m4

Depends-on:
threadlib
lock
errno
extern-inline
stdbool
time
gettimeofday

configure.ac:
gl_COND

Makefile.am:
lib_SOURCES += glthread/cond.h glthread/cond.c

Include:
"glthread/cond.h"

License:
LGPLv2+

Maintainer:
Yoann Vandoorselaere