| < Previous by Date | Date Index | Next by Date > |
| Thread Index | Next in Thread > |
There are two common implementations of critical sections in sipXecs:
OsBSem semaphore;
...
{
OsLock lock(semaphore);
<critical section>;
}
...
and
OsMutex semaphore;
...
semaphore.acquire();
<critical section>;
semaphore.release();
Is one preferable to the other?
Dale