]> Savannah Git Hosting - gnulib.git/commit
windows-rwlock: New module.
authorBruno Haible <bruno@clisp.org>
Mon, 15 Jul 2019 00:36:02 +0000 (02:36 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 15 Jul 2019 00:36:02 +0000 (02:36 +0200)
commit72f60af8edb6e1cdee4e5bb34dbc068113b9479c
treea6a85f96748079491b13e2a413c356407f124136
parent6f520fb1dd6fcc2caeb2fc9fed9140f5d96f84a7
windows-rwlock: New module.

* lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
* lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
* lib/glthread/lock.h: Include windows-rwlock.h. Don't include
windows-initguard.h.
(gl_rwlock_t): Define using glwthread_rwlock_t.
(gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
(glthread_rwlock_init): Define using glwthread_rwlock_init.
(glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
(glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
(glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
(glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
(glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
glthread_rwlock_destroy_func): Remove declarations.
* lib/glthread/lock.c (gl_waitqueue_t): Remove type.
(gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
gl_waitqueue_notify_all, glthread_rwlock_init_func,
glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
functions.
* modules/windows-rwlock: New file.
* modules/lock (Depends-on): Add windows-rwlock.
ChangeLog
lib/glthread/lock.c
lib/glthread/lock.h
lib/windows-rwlock.c [new file with mode: 0644]
lib/windows-rwlock.h [new file with mode: 0644]
modules/lock
modules/windows-rwlock [new file with mode: 0644]