projects
/
anytun.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 0.3.4
[anytun.git]
/
src
/
anyrtpproxy
/
callIdQueue.h
diff --git
a/src/anyrtpproxy/callIdQueue.h
b/src/anyrtpproxy/callIdQueue.h
index
2cea155
..
4d6f7fc
100644
(file)
--- a/
src/anyrtpproxy/callIdQueue.h
+++ b/
src/anyrtpproxy/callIdQueue.h
@@
-11,7
+11,7
@@
* tunneling and relaying of packets of any protocol.
*
*
* tunneling and relaying of packets of any protocol.
*
*
- * Copyright (C) 2007-2009 Othmar Gsenger, Erwin Nindl,
+ * Copyright (C) 2007-2009 Othmar Gsenger, Erwin Nindl,
* Christian Pointner <satp@wirdorange.org>
*
* This file is part of Anytun.
* Christian Pointner <satp@wirdorange.org>
*
* This file is part of Anytun.
@@
-41,8
+41,8
@@
class CallIdQueue
{
public:
class CallIdQueue
{
public:
- static CallIdQueue& instance();
-
+ static CallIdQueue& instance();
+
std::string& front();
void push(std::string c);
void pop();
std::string& front();
void push(std::string c);
void pop();
@@
-51,15
+51,18
@@
private:
CallIdQueue();
~CallIdQueue();
CallIdQueue();
~CallIdQueue();
- void operator=(const CallIdQueue
&
src);
- CallIdQueue(const CallIdQueue
&
src);
+ void operator=(const CallIdQueue
&
src);
+ CallIdQueue(const CallIdQueue
&
src);
static CallIdQueue* inst;
static ::Mutex instMutex;
static CallIdQueue* inst;
static ::Mutex instMutex;
- class instanceCleaner {
- public: ~instanceCleaner() {
- if(CallIdQueue::inst != 0)
+ class instanceCleaner
+ {
+ public:
+ ~instanceCleaner() {
+ if(CallIdQueue::inst != 0) {
delete CallIdQueue::inst;
delete CallIdQueue::inst;
+ }
}
};
friend class instanceCleaner;
}
};
friend class instanceCleaner;