2 Copyright (C) 2001 Werner Koch (dd9jn)
3 Copyright (C) 2001, 2002, 2004, 2007 g10 Code GmbH
5 This file is part of GPGME.
7 GPGME is free software; you can redistribute it and/or modify it
8 under the terms of the GNU Lesser General Public License as
9 published by the Free Software Foundation; either version 2.1 of
10 the License, or (at your option) any later version.
12 GPGME is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
17 You should have received a copy of the GNU Lesser General Public
18 License along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
35 #ifdef HAVE_SYS_TIME_H
36 # include <sys/time.h>
38 #ifdef HAVE_SYS_TYPES_H
39 # include <sys/types.h>
47 _gpgme_sema_subsystem_init ()
52 _gpgme_sema_cs_enter (struct critsect_s *s)
54 _gpgme_ath_mutex_lock (&s->priv);
58 _gpgme_sema_cs_leave (struct critsect_s *s)
60 _gpgme_ath_mutex_unlock (&s->priv);
64 _gpgme_sema_cs_destroy (struct critsect_s *s)
66 _gpgme_ath_mutex_destroy (&s->priv);