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

Add comment concerning connections mutex. Need to analysis

locking requires and possibly restructure locking.
parent 77cc20be
Branches
Tags
No related merge requests found
......@@ -318,6 +318,8 @@ long connection_init(
static void
connection_destroy( Connection *c )
{
/* note: connections_mutex should be locked by caller */
assert( connections != NULL );
assert( c != NULL );
assert( c->c_struct_state != SLAP_C_UNUSED );
......@@ -429,6 +431,8 @@ static void connection_close( Connection *c )
assert( c->c_struct_state == SLAP_C_USED );
assert( c->c_conn_state == SLAP_C_CLOSING );
/* note: connections_mutex should be locked by caller */
if( c->c_ops != NULL ) {
Debug( LDAP_DEBUG_TRACE,
"connection_close: deferring conn=%ld sd=%d.\n",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment