diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2013-05-29 10:24:17 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2013-05-29 10:24:38 -0700 |
commit | 55ba71f47850fbd870cb08bac1cf992f1368295e (patch) | |
tree | 0cee0ddc976e50cfc404e973077b837fd326c3bd /modules/lock | |
parent | e28fbd787cb4861a7848ac6e86c838912b8cd2ec (diff) | |
download | gnulib-55ba71f47850fbd870cb08bac1cf992f1368295e.tar.gz |
regex: adapt to locking regime instead of depending on pthread
Instead of depending on pthread, adapt to whatever thread
modules are in use. Problem reported by Ludovic Courtès in
<http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
and by Mats Erik Andersson in
<http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
* lib/regex_internal.h (lock_define, lock_init, lock_fini):
Support either the 'lock' module, or the 'pthread' module, or
no module.
(lock_lock, lock_unlock): New macros.
* lib/regexec.c (regexec, re_search_stub): Use the new macros.
* modules/lock, modules/pthread (configure.ac): Add module indicator.
* modules/regex (Depends-on): Remove pthread.
Diffstat (limited to 'modules/lock')
-rw-r--r-- | modules/lock | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/lock b/modules/lock index f7e4c9a9b5..3377915fcf 100644 --- a/modules/lock +++ b/modules/lock @@ -11,6 +11,7 @@ threadlib configure.ac: gl_LOCK +gl_MODULE_INDICATOR([lock]) Makefile.am: lib_SOURCES += glthread/lock.h glthread/lock.c |