[ros-users] need help: set_parameters service callback very sluggish with nodelet-based camera1394 driver

Blaise Gassend blaise at willowgarage.com
Thu Feb 3 16:37:10 UTC 2011

>> Is this not the defining use case for pthread yield() ?
> It preempts and puts the current thread at the end of the run queue,
> effectively directly going to the waiting thread which acquires the
> lock. If there is no thread in the run queue, it immediately resumes.
> http://www.kernel.org/doc/man-pages/online/pages/man3/pthread_yield.3.html

I did not realize that yield actually puts the thread at the bottom of
the queue for its run level. That being the case, that's definitely
the way to go here.

Jack, I wouldn't be as concerned as you are about pushing this change
into diamondback. It is a simplification of the existing code. It
reverts back to a former state of the code. It does not break the API
in any way.

More information about the ros-users mailing list