diff options
author | ilsimo <ilsimo> | 2008-07-30 10:58:30 +0000 |
---|---|---|
committer | ilsimo <ilsimo> | 2008-07-30 10:58:30 +0000 |
commit | d14b076a700e1ad87048549945f0f1e658db6cd5 (patch) | |
tree | cba23a5e8d2175796912e738164c26da4ce345b6 /sesman/lock.c | |
parent | a8a2f0a0b0749fa0d7376d2322b05f3984356e29 (diff) | |
download | xrdp-proprietary-d14b076a700e1ad87048549945f0f1e658db6cd5.tar.gz xrdp-proprietary-d14b076a700e1ad87048549945f0f1e658db6cd5.zip |
still more work on logging
libscp makefile fix
Diffstat (limited to 'sesman/lock.c')
-rw-r--r-- | sesman/lock.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sesman/lock.c b/sesman/lock.c index a6118861..912084a2 100644 --- a/sesman/lock.c +++ b/sesman/lock.c @@ -26,6 +26,8 @@ #include <semaphore.h> #include <pthread.h> +extern struct config_sesman* g_cfg; + pthread_mutex_t lock_chain; /* session chain lock */ pthread_mutexattr_t lock_chain_attr; /* mutex attributes */ @@ -54,7 +56,7 @@ void DEFAULT_CC lock_chain_acquire(void) { /*lock the chain*/ - LOG_DBG("lock_chain_acquire()",0); + LOG_DBG(&(g_cfg->log), "lock_chain_acquire()"); pthread_mutex_lock(&lock_chain); } @@ -63,7 +65,7 @@ void DEFAULT_CC lock_chain_release(void) { /*unlock the chain*/ - LOG_DBG("lock_chain_release()",0); + LOG_DBG(&(g_cfg->log), "lock_chain_release()"); pthread_mutex_unlock(&lock_chain); } @@ -72,7 +74,7 @@ void DEFAULT_CC lock_socket_acquire(void) { /* lock socket variable */ - LOG_DBG("lock_socket_acquire()",0); + LOG_DBG(&(g_cfg->log), "lock_socket_acquire()"); sem_wait(&lock_socket); } @@ -81,7 +83,7 @@ void DEFAULT_CC lock_socket_release(void) { /* unlock socket variable */ - LOG_DBG("lock_socket_release()",0); + LOG_DBG(&(g_cfg->log), "lock_socket_release()"); sem_post(&lock_socket); } |