Home GnuPG

w32: Replace gpgrt locks in w32-streams by native critical sections.
c9e44c92e081Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

w32: Replace gpgrt locks in w32-streams by native critical sections.

* src/w32-estream.c (TRACE_ERR): Also print the error number.  This is
in particular useful on non-english systems.
(reader_context_s, writer_context_s): Replace the gpgrt mutex by a
native critical section.  Change all calls to gpgrt_lock_ fucntions by
the EnterCriticalSection et al.
(_gpgrt_w32_poll): Make CODE unsigned which is what WFMO returns.
Remove the then useless condition.

The locking code here is self-contained and may badly interact with
the possible nPth "clamped" gpgrt lock functions.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Feb 23 2017, 3:20 PM
Parents
rE3a2ee6df5911: New error code GPG_ERR_INV_NAME.
Branches
Unknown
Tags
Unknown

Event Timeline