mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-14 21:47:19 +02:00
Make dotlock.c thread-safe on pthread systems.
This is achieved by passing the define DOTLOCK_USE_PTHREAD.
This commit is contained in:
parent
ed8e267859
commit
bf3d5beb71
2 changed files with 81 additions and 25 deletions
|
@ -1,3 +1,10 @@
|
|||
2011-09-29 Werner Koch <wk@g10code.com>
|
||||
|
||||
* dotlock.c (DOTLOCK_USE_PTHREAD): New macro.
|
||||
[DOTLOCK_USE_PTHREAD] (all_lockfiles_mutex): New.
|
||||
(LOCK_all_lockfiles, UNLOCK_all_lockfiles): New. Use them to
|
||||
protect access to all_lockfiles.
|
||||
|
||||
2011-09-28 Werner Koch <wk@g10code.com>
|
||||
|
||||
* dotlock.c (dotlock_take, dotlock_take_unix, dotlock_take_w32):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue