Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
2a48679c
Commit
2a48679c
authored
Feb 10, 2003
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed pthread debugging (locks...)
parent
73d943b3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
rfb.h
include/rfb.h
+11
-11
No files found.
include/rfb.h
View file @
2a48679c
...
@@ -85,17 +85,17 @@ typedef uint32_t Pixel;
...
@@ -85,17 +85,17 @@ typedef uint32_t Pixel;
#ifdef HAVE_LIBPTHREAD
#ifdef HAVE_LIBPTHREAD
#include <pthread.h>
#include <pthread.h>
#if 0 /* debugging */
#if 0 /* debugging */
#define LOCK(mutex)
fprintf(stderr,"%s:%d LOCK(%s,0x%x)\n",__FILE__,__LINE__,#mutex,&(mutex
))
#define LOCK(mutex)
(fprintf(stderr,"%s:%d LOCK(%s,0x%x)\n",__FILE__,__LINE__,#mutex,&(mutex)), pthread_mutex_lock(&(mutex)
))
#define UNLOCK(mutex)
fprintf(stderr,"%s:%d UNLOCK(%s,0x%x)\n",__FILE__,__LINE__,#mutex,&(mutex
))
#define UNLOCK(mutex)
(fprintf(stderr,"%s:%d UNLOCK(%s,0x%x)\n",__FILE__,__LINE__,#mutex,&(mutex)), pthread_mutex_unlock(&(mutex)
))
#define MUTEX(mutex)
int mutex
#define MUTEX(mutex)
pthread_mutex_t (mutex)
#define INIT_MUTEX(mutex)
fprintf(stderr,"%s:%d INIT_MUTEX(%s,0x%x)\n",__FILE__,__LINE__,#mutex,&(mutex
))
#define INIT_MUTEX(mutex)
(fprintf(stderr,"%s:%d INIT_MUTEX(%s,0x%x)\n",__FILE__,__LINE__,#mutex,&(mutex)), pthread_mutex_init(&(mutex),NULL
))
#define TINI_MUTEX(mutex)
fprintf(stderr,"%s:%d TINI_MUTEX(%s)\n",__FILE__,__LINE__,#mutex
)
#define TINI_MUTEX(mutex)
(fprintf(stderr,"%s:%d TINI_MUTEX(%s)\n",__FILE__,__LINE__,#mutex), pthread_mutex_destroy(&(mutex))
)
#define
SIGNAL(cond) fprintf(stderr,"%s:%d SIGNAL(%s)\n",__FILE__,__LINE__,#cond
)
#define
TSIGNAL(cond) (fprintf(stderr,"%s:%d TSIGNAL(%s)\n",__FILE__,__LINE__,#cond), pthread_cond_signal(&(cond))
)
#define WAIT(cond,mutex)
/* fprintf(stderr,"%s:%d WAIT(%s,%s)\n",__FILE__,__LINE__,#cond,#mutex) */
#define WAIT(cond,mutex)
(fprintf(stderr,"%s:%d WAIT(%s,%s)\n",__FILE__,__LINE__,#cond,#mutex), pthread_cond_wait(&(cond),&(mutex)))
#define COND(cond)
#define COND(cond)
pthread_cond_t (cond)
#define INIT_COND(cond)
fprintf(stderr,"%s:%d INIT_COND(%s)\n",__FILE__,__LINE__,#cond
)
#define INIT_COND(cond)
(fprintf(stderr,"%s:%d INIT_COND(%s)\n",__FILE__,__LINE__,#cond), pthread_cond_init(&(cond),NULL)
)
#define TINI_COND(cond)
fprintf(stderr,"%s:%d TINI_COND(%s)\n",__FILE__,__LINE__,#cond
)
#define TINI_COND(cond)
(fprintf(stderr,"%s:%d TINI_COND(%s)\n",__FILE__,__LINE__,#cond), pthread_cond_destroy(&(cond))
)
#define IF_PTHREADS(x)
#define IF_PTHREADS(x)
x
#else
#else
#define LOCK(mutex) pthread_mutex_lock(&(mutex));
#define LOCK(mutex) pthread_mutex_lock(&(mutex));
#define UNLOCK(mutex) pthread_mutex_unlock(&(mutex));
#define UNLOCK(mutex) pthread_mutex_unlock(&(mutex));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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