Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
c32dcd63
Commit
c32dcd63
authored
Jan 27, 1999
by
Kurt Zeilenga
Browse files
Fixup begin/end declaration tags
Assume portable.h has been included Include ldap_cdefs.h at the top.
parent
07f566e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/ldap_pvt_thread.h
View file @
c32dcd63
...
...
@@ -12,7 +12,7 @@
#ifndef _LDAP_PVT_THREAD_H
#define _LDAP_PVT_THREAD_H
#include
"
portable
.h"
#include
"
ldap_cdefs
.h"
#if defined( HAVE_PTHREADS )
/**********************************
...
...
@@ -133,6 +133,8 @@ LDAP_END_DECL
#include
<windows.h>
#include
<process.h>
LDAP_BEGIN_DECL
typedef
HANDLE
ldap_pvt_thread_t
;
typedef
int
ldap_pvt_thread_attr_t
;
typedef
HANDLE
ldap_pvt_thread_mutex_t
;
...
...
@@ -143,6 +145,8 @@ typedef int ldap_pvt_thread_condattr_t;
#define LDAP_PVT_THREAD_CREATE_DETACHED 0
#define LDAP_PVT_THREAD_CREATE_JOINABLE 0
LDAP_END_DECL
#else
/***********************************
...
...
@@ -176,6 +180,8 @@ LDAP_END_DECL
# define HAVE_THREADS 1
#endif
LDAP_BEGIN_DECL
LDAP_F
int
ldap_pvt_thread_create
LDAP_P
((
ldap_pvt_thread_t
*
thread
,
ldap_pvt_thread_attr_t
*
attr
,
...
...
@@ -232,8 +238,6 @@ ldap_pvt_thread_mutex_lock LDAP_P(( ldap_pvt_thread_mutex_t *mutex ));
LDAP_F
int
ldap_pvt_thread_mutex_unlock
LDAP_P
((
ldap_pvt_thread_mutex_t
*
mutex
));
#include
<ldap_cdefs.h>
typedef
struct
ldap_pvt_thread_rdwr_var
{
int
readers_reading
;
int
writer_writing
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment