*** empty log message ***

This commit is contained in:
glenux 2004-02-25 11:12:03 +00:00
parent 56fea5f886
commit 0e263ac413
2 changed files with 5 additions and 1 deletions

View file

@ -3,6 +3,7 @@
int msgPoolDataTabLock(msgSpace * space){ int msgPoolDataTabLock(msgSpace * space){
sem_t * poolDataTabSemFd; sem_t * poolDataTabSemFd;
printf("Locking %s\n",space->poolDataTabSemId);
poolDataTabSemFd=sem_open( poolDataTabSemFd=sem_open(
space->poolDataTabSemId space->poolDataTabSemId

View file

@ -4,12 +4,15 @@
int msgPoolDataTabUnlock(msgSpace * space){ int msgPoolDataTabUnlock(msgSpace * space){
sem_t * poolDataTabSemFd; sem_t * poolDataTabSemFd;
printf("Locking %s\n",space->poolDataTabSemId);
poolDataTabSemFd=sem_open( poolDataTabSemFd=sem_open(
space->poolDataTabSemId space->poolDataTabSemId
,O_CREAT, ,O_CREAT,
SEM_DEFAULT_MODE, SEM_DEFAULT_MODE,
1); 1);
int semval=0;
sem_getvalue(poolDataTabSemFd,&semval);
printf("(Value:%d)",semval);
if(poolDataTabSemFd==SEM_FAILED){ if(poolDataTabSemFd==SEM_FAILED){
NZG_ERROR("sem_open",space->poolDataTabSemId); NZG_ERROR("sem_open",space->poolDataTabSemId);
goto ERROR; goto ERROR;