Skip to content
Snippets Groups Projects
Commit 5cc86c17 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Demonstrate how rdwr routines could be easily replaced.

Update comment with reference to publically available examples.
parent 64d72278
No related branches found
No related tags found
No related merge requests found
......@@ -7,13 +7,10 @@
**
** Does not support cancellation nor does any status checking.
*/
/********************************************************
* Adapted from:
/* Adapted from publically available examples for:
* "Programming with Posix Threads"
* by David R Butenhof
* Addison-Wesley
********************************************************
* by David R Butenhof, Addison-Wesley
* http://cseng.aw.com/bookpage.taf?ISBN=0-201-63392-2
*/
#include "portable.h"
......@@ -25,6 +22,12 @@
#include "ldap_pvt_thread.h"
/*
* implementations that provide their own compatible
* should define LDAP_THREAD_HAVE_RDWR in ldap_pvt_thread.h
*/
#ifndef LDAP_THREAD_HAVE_RDWR
int
ldap_pvt_thread_rdwr_init( ldap_pvt_thread_rdwr_t *rw )
{
......@@ -260,3 +263,5 @@ int ldap_pvt_thread_rdwr_active(ldap_pvt_thread_rdwr_t *rw)
}
#endif /* LDAP_DEBUG */
#endif /* LDAP_THREAD_HAVE_RDWR */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment