Author: sayer
Date: 2008-06-05 15:56:41 +0200 (Thu, 05 Jun 2008)
New Revision: 1007
Modified:
branches/1.0.0/core/AmMediaProcessor.cpp
Log:
reverted r1004: the current timer behaviour
(use nanosleep if <= 2 us left, as opposed to <= 2 ms)
has been in production for years and is well
tested under high load conditions.
Modified: branches/1.0.0/core/AmMediaProcessor.cpp
===================================================================
--- branches/1.0.0/core/AmMediaProcessor.cpp 2008-06-04 10:56:01 UTC (rev
1006)
+++ branches/1.0.0/core/AmMediaProcessor.cpp 2008-06-05 13:56:41 UTC (rev
1007)
@@ -204,7 +204,7 @@
sdiff.tv_sec = diff.tv_sec;
sdiff.tv_nsec = diff.tv_usec * 1000;
- if(sdiff.tv_nsec > 2000000) // 2 ms
+ if(sdiff.tv_nsec > 2000) // 2 us
nanosleep(&sdiff,&rem);
}
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev