summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorSuper User2008-04-24 19:35:55 +0200
committerSuper User2008-04-24 19:35:55 +0200
commit01c427aa46ffb006e60d112d5536ac76d9e968f0 (patch)
tree5b47e7345665f5fe94cefd859cc37de1ae93f375 /main.c
parentmissing myisdn (diff)
downloadlcr-01c427aa46ffb006e60d112d5536ac76d9e968f0.tar.gz
lcr-01c427aa46ffb006e60d112d5536ac76d9e968f0.tar.xz
lcr-01c427aa46ffb006e60d112d5536ac76d9e968f0.zip
work
modified: chan_lcr.c modified: mISDN.cpp modified: main.c
Diffstat (limited to 'main.c')
-rw-r--r--main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/main.c b/main.c
index 8fe35a7..12ed45e 100644
--- a/main.c
+++ b/main.c
@@ -38,9 +38,9 @@ struct lcr_fdset lcr_fdset[FD_SETSIZE];
#endif
pthread_mutex_t mutexd; // debug output mutex
-//pthread_mutex_t mutext; // trace output mutex
+pthread_mutex_t mutext; // trace output mutex
pthread_mutex_t mutexe; // error output mutex
-pthread_mutex_t mutex_lcr; // lcr process mutex
+//pthread_mutex_t mutex_lcr; // lcr process mutex
int memuse = 0;
int mmemuse = 0;
@@ -217,7 +217,7 @@ int main(int argc, char *argv[])
#endif
/* lock LCR process */
- pthread_mutex_lock(&mutex_lcr);
+// pthread_mutex_lock(&mutex_lcr);
/* current time */
GET_NOW();
@@ -648,9 +648,9 @@ BUDETECT
/* did we do nothing? so we wait to give time to other processes */
if (all_idle)
{
- pthread_mutex_unlock(&mutex_lcr); // unlock LCR
+// pthread_mutex_unlock(&mutex_lcr); // unlock LCR
debug_usleep(4000, __FILE__, __LINE__, now_tm->tm_hour, now_tm->tm_min, now_tm->tm_sec);
- pthread_mutex_lock(&mutex_lcr); // lock LCR
+// pthread_mutex_lock(&mutex_lcr); // lock LCR
idletime += 4000;
}
}
@@ -778,7 +778,7 @@ free:
MEMCHECK("file handler(s) left",fhuse)
/* unlock LCR process */
- pthread_mutex_unlock(&mutex_lcr);
+// pthread_mutex_unlock(&mutex_lcr);
/* take me out */
return(ret);