[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[certi-cvs] certi/libCERTI Semaphore.hh SemaphorePosix.cc S... [br_CERTI
From: |
certi-cvs |
Subject: |
[certi-cvs] certi/libCERTI Semaphore.hh SemaphorePosix.cc S... [br_CERTI_SHM_NEWGEN_dev] |
Date: |
Tue, 01 Sep 2009 11:14:14 +0000 |
CVSROOT: /sources/certi
Module name: certi
Branch: br_CERTI_SHM_NEWGEN_dev
Changes by: Eric NOULARD <erk> 09/09/01 11:14:14
Modified files:
libCERTI : Semaphore.hh SemaphorePosix.cc
SemaphorePosix.hh SemaphoreSysV.hh
Log message:
Add virtual destructors where they should be.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/libCERTI/Semaphore.hh?cvsroot=certi&only_with_tag=br_CERTI_SHM_NEWGEN_dev&r1=1.1.2.1&r2=1.1.2.2
http://cvs.savannah.gnu.org/viewcvs/certi/libCERTI/SemaphorePosix.cc?cvsroot=certi&only_with_tag=br_CERTI_SHM_NEWGEN_dev&r1=1.1.2.1&r2=1.1.2.2
http://cvs.savannah.gnu.org/viewcvs/certi/libCERTI/SemaphorePosix.hh?cvsroot=certi&only_with_tag=br_CERTI_SHM_NEWGEN_dev&r1=1.1.2.1&r2=1.1.2.2
http://cvs.savannah.gnu.org/viewcvs/certi/libCERTI/SemaphoreSysV.hh?cvsroot=certi&only_with_tag=br_CERTI_SHM_NEWGEN_dev&r1=1.1.2.1&r2=1.1.2.2
Patches:
Index: Semaphore.hh
===================================================================
RCS file: /sources/certi/certi/libCERTI/Attic/Semaphore.hh,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -b -r1.1.2.1 -r1.1.2.2
--- Semaphore.hh 1 Sep 2009 11:09:21 -0000 1.1.2.1
+++ Semaphore.hh 1 Sep 2009 11:14:13 -0000 1.1.2.2
@@ -13,7 +13,7 @@
public :
// Semaphore() ;
- // ~Semaphore() ;
+ virtual ~Semaphore() {};
// virtual void Sem_create_init(int initval, char * semname) = 0 ;
// virtual void Sem_create(key_t cle) = 0 ;
// virtual void Sem_init(int initval) = 0 ;
Index: SemaphorePosix.cc
===================================================================
RCS file: /sources/certi/certi/libCERTI/Attic/SemaphorePosix.cc,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -b -r1.1.2.1 -r1.1.2.2
--- SemaphorePosix.cc 1 Sep 2009 11:09:21 -0000 1.1.2.1
+++ SemaphorePosix.cc 1 Sep 2009 11:14:13 -0000 1.1.2.2
@@ -14,7 +14,6 @@
// Method : SemaphorePosix::Create_Init(...)
// ************************************************
void SemaphorePosix::Create_Init(const int initval, const std::string&
New_Semname) {
-int flag ;
_Semname.assign(New_Semname) ;
sem_unlink(_Semname.c_str()) ;
@@ -33,7 +32,6 @@
// ************************************************
void SemaphorePosix::Attach(const std::string& New_Semname) {
-int flag ;
_Semname.assign(New_Semname) ;
_Sem = sem_open( _Semname.c_str(), O_CREAT);
if(_Sem == SEM_FAILED){
Index: SemaphorePosix.hh
===================================================================
RCS file: /sources/certi/certi/libCERTI/Attic/SemaphorePosix.hh,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -b -r1.1.2.1 -r1.1.2.2
--- SemaphorePosix.hh 1 Sep 2009 11:09:21 -0000 1.1.2.1
+++ SemaphorePosix.hh 1 Sep 2009 11:14:13 -0000 1.1.2.2
@@ -24,7 +24,7 @@
public :
SemaphorePosix() ;
- ~SemaphorePosix() ;
+ virtual ~SemaphorePosix() ;
void Create_Init(const int initval, const std::string& New_Semname ) ;
void Attach(const std::string& New_Semname ) ;
void P() ;
Index: SemaphoreSysV.hh
===================================================================
RCS file: /sources/certi/certi/libCERTI/Attic/SemaphoreSysV.hh,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -b -r1.1.2.1 -r1.1.2.2
--- SemaphoreSysV.hh 1 Sep 2009 11:09:21 -0000 1.1.2.1
+++ SemaphoreSysV.hh 1 Sep 2009 11:14:13 -0000 1.1.2.2
@@ -21,7 +21,7 @@
public :
SemaphoreSysV() ;
- ~SemaphoreSysV() ;
+ virtual ~SemaphoreSysV() ;
void Create_Init(const int initval, const int cle) ;
void P() ;
void V() ;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [certi-cvs] certi/libCERTI Semaphore.hh SemaphorePosix.cc S... [br_CERTI_SHM_NEWGEN_dev],
certi-cvs <=