Send a crash report when a hung process is detected.
[chromium-blink-merge.git] / native_client_sdk / src / libraries / third_party / pthreads-win32 / semaphore.c
blob64fc0e366d90a76199a7635b4b5008e475b7b64b
1 /*
2 * -------------------------------------------------------------
4 * Module: semaphore.c
6 * Purpose:
7 * Concatenated version of separate modules to allow
8 * inlining optimisation, which it is assumed can only
9 * be effective within a single module.
11 * Semaphores aren't actually part of the PThreads standard.
12 * They are defined by the POSIX Standard:
14 * POSIX 1003.1b-1993 (POSIX.1b)
16 * -------------------------------------------------------------
18 * --------------------------------------------------------------------------
20 * Pthreads-win32 - POSIX Threads Library for Win32
21 * Copyright(C) 1998 John E. Bossom
22 * Copyright(C) 1999,2005 Pthreads-win32 contributors
24 * Contact Email: rpj@callisto.canberra.edu.au
26 * The current list of contributors is contained
27 * in the file CONTRIBUTORS included with the source
28 * code distribution. The list can also be seen at the
29 * following World Wide Web location:
30 * http://sources.redhat.com/pthreads-win32/contributors.html
32 * This library is free software; you can redistribute it and/or
33 * modify it under the terms of the GNU Lesser General Public
34 * License as published by the Free Software Foundation; either
35 * version 2 of the License, or (at your option) any later version.
37 * This library is distributed in the hope that it will be useful,
38 * but WITHOUT ANY WARRANTY; without even the implied warranty of
39 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
40 * Lesser General Public License for more details.
42 * You should have received a copy of the GNU Lesser General Public
43 * License along with this library in the file COPYING.LIB;
44 * if not, write to the Free Software Foundation, Inc.,
45 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
48 #if !defined(NEED_FTIME)
49 # include <sys/timeb.h>
50 #endif
52 #include <limits.h>
54 #include "pthread.h"
55 #include "semaphore.h"
56 #include "implement.h"
59 #include "sem_init.c"
60 #include "sem_destroy.c"
61 #include "sem_trywait.c"
62 #include "sem_wait.c"
63 #include "sem_timedwait.c"
64 #include "sem_post.c"
65 #include "sem_post_multiple.c"
66 #include "sem_getvalue.c"
67 #include "sem_open.c"
68 #include "sem_close.c"
69 #include "sem_unlink.c"