Home GnuPG
Diffusion nPth e369dd721762

w32: Fix npth_cond_signal and npth_cond_broadcast.

Description

w32: Fix npth_cond_signal and npth_cond_broadcast.

* w32/npth.c (struct dl): New struct.
(struct npth_impl_s): Have the struct dl at top.
(dequeue_thread, enqueue_thread): Replace old implementation.
(new_thread): Fix for the double linked list.
(free_thread): Likewise.
(struct npth_cond_s): Have the struct dl.
(npth_cond_init, npth_cond_destroy): Fix for the double linked list.
(npth_cond_signal, npth_cond_broadcast): Fix to update the list
correctly.
(npth_cond_wait, npth_cond_timedwait): Fix for the double linked list.
  • GnuPG-bug-id: T7386
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details