2 Copyright (C) 2001 Werner Koch (dd9jn)
3 Copyright (C) 2001, 2002 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 General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (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 General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GPGME; if not, write to the Free Software Foundation,
19 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
33 #include <sys/types.h>
40 _gpgme_sema_subsystem_init ()
42 /* FIXME: we should check that there is only one thread running */
47 _gpgme_sema_cs_enter (struct critsect_s *s)
49 _gpgme_ath_mutex_lock (&s->private);
53 _gpgme_sema_cs_leave (struct critsect_s *s)
55 _gpgme_ath_mutex_unlock (&s->private);
59 _gpgme_sema_cs_destroy (struct critsect_s *s)
61 _gpgme_ath_mutex_destroy (&s->private);