Page MenuHome GnuPG

t-mutex.c
No OneTemporary

t-mutex.c

/* t-mutex.c
* Copyright 2011, 2012 g10 Code GmbH
*
* This file is free software; as a special exception the author gives
* unlimited permission to copy and/or distribute it, with or without
* modifications, as long as this notice is preserved.
*
* This file is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#include "t-support.h"
int
main (int argc, char *argv[])
{
int rc;
npth_mutex_t mutex;
rc = npth_init ();
fail_if_err (rc);
rc = npth_mutex_init (&mutex, NULL);
fail_if_err (rc);
rc = npth_mutex_lock (&mutex);
fail_if_err (rc);
rc = npth_mutex_unlock (&mutex);
fail_if_err (rc);
return 0;
}

File Metadata

Mime Type
text/x-c
Expires
Mon, May 12, 6:36 PM (1 d, 21 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b5/93/6463f2c457a2f8b477b33f1f3cac

Event Timeline