I have a function that is being run on a separate queue/thread. In this function I am trying to call usleep.
Regardless of the value passed in, usleep doesn't seem to work. The same goes for sleep().
To diagnose the error, I printed out errno. errno prints as: "Interrupted system call"
What exactly does this mean, and how could I go about diagnosing it?
The man pages describe the error as:
[EINTR] A signal was delivered to the process and its action was to invoke a signal-catching
function.
Note I am on OSX Mountain Lion using Xcode 4 and using Objective-C. I am developing an app for OSX using Cocoa.