*** empty log message ***
This commit is contained in:
parent
56fea5f886
commit
0e263ac413
2 changed files with 5 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
int msgPoolDataTabLock(msgSpace * space){
|
||||
sem_t * poolDataTabSemFd;
|
||||
printf("Locking %s\n",space->poolDataTabSemId);
|
||||
|
||||
poolDataTabSemFd=sem_open(
|
||||
space->poolDataTabSemId
|
||||
|
|
|
@ -4,12 +4,15 @@
|
|||
|
||||
int msgPoolDataTabUnlock(msgSpace * space){
|
||||
sem_t * poolDataTabSemFd;
|
||||
|
||||
printf("Locking %s\n",space->poolDataTabSemId);
|
||||
poolDataTabSemFd=sem_open(
|
||||
space->poolDataTabSemId
|
||||
,O_CREAT,
|
||||
SEM_DEFAULT_MODE,
|
||||
1);
|
||||
int semval=0;
|
||||
sem_getvalue(poolDataTabSemFd,&semval);
|
||||
printf("(Value:%d)",semval);
|
||||
if(poolDataTabSemFd==SEM_FAILED){
|
||||
NZG_ERROR("sem_open",space->poolDataTabSemId);
|
||||
goto ERROR;
|
||||
|
|
Loading…
Reference in a new issue