diff options
author | Christian Pointner <equinox@anytun.org> | 2014-06-28 18:59:22 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2014-06-28 18:59:22 +0000 |
commit | b35d79b1feee163600305db7dcde9b4a7150f1cc (patch) | |
tree | 19ee96cfb175829218a7b7dcde74f963aaed2a2e /src/anyrtpproxy/anyrtpproxy.cpp | |
parent | updated changelog (diff) |
while(1) vs. for(;;)
Diffstat (limited to 'src/anyrtpproxy/anyrtpproxy.cpp')
-rw-r--r-- | src/anyrtpproxy/anyrtpproxy.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/anyrtpproxy/anyrtpproxy.cpp b/src/anyrtpproxy/anyrtpproxy.cpp index abb6a03..c7b7343 100644 --- a/src/anyrtpproxy/anyrtpproxy.cpp +++ b/src/anyrtpproxy/anyrtpproxy.cpp @@ -70,7 +70,7 @@ void listener(RtpSession::proto::socket* sock1, RtpSession::proto::socket* sock2 Buffer buf(uint32_t(MAX_PACKET_SIZE)); RtpSession::proto::endpoint remote_end; - while(1) { + for(;;) { buf.setLength(MAX_PACKET_SIZE); uint32_t len=0; if(dir == 1) { @@ -148,7 +148,7 @@ void listenerManager(void* p) SyncQueue* queue_ = reinterpret_cast<SyncQueue*>(p); std::map<std::string, ListenerData*> listenerMap; - while(1) { + for(;;) { try { std::string call_id = gCallIdQueue.front(); // waits for semaphor and returns next call_id gCallIdQueue.pop(); |