Commit 0770cd5b authored by sletz's avatar sletz
Browse files

Cleanup


git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2540 0c269be4-1314-0410-8aa9-9f06e86f4224
parent af188572
......@@ -101,7 +101,6 @@ bool JackPosixSemaphore::Wait()
return (res == 0);
}
#if (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) // glibc feature test
bool JackPosixSemaphore::TimedWait(long usec)
......@@ -117,9 +116,7 @@ bool JackPosixSemaphore::TimedWait(long usec)
gettimeofday(&now, 0);
time.tv_sec = now.tv_sec + usec / 1000000;
long tv_usec = (now.tv_usec + (usec % 1000000));
time.tv_sec += tv_usec / 1000000;
time.tv_nsec = (tv_usec % 1000000) * 1000;
if ((res = sem_timedwait(fSemaphore, &time)) != 0) {
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment