Skip to content

Commit

Permalink
Tweak comments
Browse files Browse the repository at this point in the history
  • Loading branch information
smonkewitz authored and wangd committed May 29, 2014
1 parent 52b4d47 commit 67c1410
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/XrdSys/XrdSysPthread.cc
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,6 @@ void XrdSysSemaphore::Wait(int sec)
struct timespec tval;
int retc;

// Adding a cleanup handler to the stack here enables threads using this OSX
// semaphore to be canceled (which is rare). A scoped lock won't work here
// because OSX is broken and doesn't call destructors properly.
//
semVar.Lock();

retc = semVal < 1;
Expand Down Expand Up @@ -282,7 +278,7 @@ int XrdSysSemaphore::Wait(int sec)
tval.tv_sec = time(0) + sec;
tval.tv_nsec = 0;

// Wait until the semaphore value is positive or timeout
// Wait for the semaphore or timeout
//
while(sem_timedwait(&h_semaphore, &tval))
{if (errno == ETIMEDOUT) return 1;
Expand Down

0 comments on commit 67c1410

Please sign in to comment.