[Dfsm-devel] dFSM/src/libposixwrap tsemaphore.cpp,1.5,1.6
Status: Beta
Brought to you by:
amoreno
|
From: Andreu M. <am...@us...> - 2004-03-30 15:24:10
|
Update of /cvsroot/dfsm/dFSM/src/libposixwrap In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14192/src/libposixwrap Modified Files: tsemaphore.cpp Log Message: Events are now total ordered. Solved bug in using the same semaphore for sm_route_table and sm_seq Index: tsemaphore.cpp =================================================================== RCS file: /cvsroot/dfsm/dFSM/src/libposixwrap/tsemaphore.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** tsemaphore.cpp 3 Aug 2003 21:12:07 -0000 1.5 --- tsemaphore.cpp 30 Mar 2004 15:12:31 -0000 1.6 *************** *** 30,33 **** --- 30,36 ---- * $Revision$ * $Log$ + * Revision 1.6 2004/03/30 15:12:31 amoreno + * Events are now total ordered. Solved bug in using the same semaphore for sm_route_table and sm_seq + * * Revision 1.5 2003/08/03 21:12:07 jvalduvieco * Major cleaning: *************** *** 57,64 **** // FIXME: Free semaphore in destructor. ! tSemaphore::tSemaphore() { // Obtain a binary semaphore's ID, allocationg if necessary ! if ((tSemaphore::id = semget(SEMAPHORE_KEY, SET_SIZE, PERMS | IPC_CREAT)) < 0) { //FSMLOG(0) << "Error creating semaphore with key: " << SEMAPHORE_KEY << endl; //FIXME: throw an exception --- 60,67 ---- // FIXME: Free semaphore in destructor. ! tSemaphore::tSemaphore(key_t k) { // Obtain a binary semaphore's ID, allocationg if necessary ! if ((tSemaphore::id = semget(k, SET_SIZE, PERMS | IPC_CREAT)) < 0) { //FSMLOG(0) << "Error creating semaphore with key: " << SEMAPHORE_KEY << endl; //FIXME: throw an exception |