Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 58 lines (46 sloc) 1.753 kB
fd37d68 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2623 5dc97367-9…
alobbs authored
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2
3 /* Cherokee
4 *
5 * Authors:
6 * Alvaro Lopez Ortega <alvaro@alobbs.com>
7 *
920e20b @alobbs Happy new year!
alobbs authored
8 * Copyright (C) 2001-2011 Alvaro Lopez Ortega
fd37d68 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2623 5dc97367-9…
alobbs authored
9 *
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of version 2 of the GNU General Public
12 * License as published by the Free Software Foundation.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
2c39092 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2660 5dc97367-9…
alobbs authored
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 * 02110-1301, USA.
72f6444 @alobbs Clean up: Trims trailing spaces.
alobbs authored
23 */
fd37d68 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2623 5dc97367-9…
alobbs authored
24
25 #ifndef CHEROKEE_THREADING_H
26 #define CHEROKEE_THREADING_H
27
28 #include "common.h"
29
9940524 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2759 5dc97367-9…
alobbs authored
30 /* Global if */
36db681 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2764 5dc97367-9…
alobbs authored
31 #ifdef HAVE_PTHREAD
9940524 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2759 5dc97367-9…
alobbs authored
32
33 # include <pthread.h>
34
85002ae @skarcha git-svn-id: svn://cherokee-project.com/cherokee/trunk@2779 5dc97367-9…
skarcha authored
35 # if defined(HAVE_PTHREAD_MUTEXATTR_SETTYPE) || defined(HAVE_PTHREAD_MUTEXATTR_SETKIND_NP)
fd37d68 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2623 5dc97367-9…
alobbs authored
36 extern pthread_mutexattr_t cherokee_mutexattr_fast;
37 extern pthread_mutexattr_t cherokee_mutexattr_errorcheck;
9940524 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2759 5dc97367-9…
alobbs authored
38 # endif
39
85002ae @skarcha git-svn-id: svn://cherokee-project.com/cherokee/trunk@2779 5dc97367-9…
skarcha authored
40 # if defined(HAVE_PTHREAD_MUTEXATTR_SETTYPE) || defined(HAVE_PTHREAD_MUTEXATTR_SETKIND_NP)
9940524 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2759 5dc97367-9…
alobbs authored
41 # define CHEROKEE_MUTEX_FAST (&cherokee_mutexattr_fast)
85002ae @skarcha git-svn-id: svn://cherokee-project.com/cherokee/trunk@2779 5dc97367-9…
skarcha authored
42 # define CHEROKEE_MUTEX_ERRORCHECK (&cherokee_mutexattr_errorcheck)
9940524 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2759 5dc97367-9…
alobbs authored
43 # else
44 # define CHEROKEE_MUTEX_FAST NULL
85002ae @skarcha git-svn-id: svn://cherokee-project.com/cherokee/trunk@2779 5dc97367-9…
skarcha authored
45 # define CHEROKEE_MUTEX_ERRORCHECK NULL
9940524 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2759 5dc97367-9…
alobbs authored
46 # endif
47
c5fe3a4 @alobbs Errors are not longer written through the logger objects. They are
alobbs authored
48 extern pthread_key_t thread_error_writer_ptr;
4d7cf64 @alobbs Enhances the CHEROKEE_TRACE mechanism by adding a new special 'from'
alobbs authored
49 extern pthread_key_t thread_connection_ptr;
4d387f4 @alobbs This patch changes substantially the way in which errors and warnings
alobbs authored
50
9940524 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2759 5dc97367-9…
alobbs authored
51 /* Global if */
72f6444 @alobbs Clean up: Trims trailing spaces.
alobbs authored
52 #endif
fd37d68 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2623 5dc97367-9…
alobbs authored
53
54 ret_t cherokee_threading_init (void);
55 ret_t cherokee_threading_free (void);
56
57 #endif /* CHEROKEE_BOGOTIME_H */
Something went wrong with that request. Please try again.