[mythtv-commits] mythtv/master commit: c4927c254 by Gavin Hurlbut (Beirdo)
MythTV
noreply at mythtv.org
Sat Mar 5 21:42:46 UTC 2011
Author: Gavin Hurlbut <ghurlbut at mythtv.org>
Change Date: 2011-03-05T13:40:27-08:00
Push Date: 2011/03/05 13:42:45 -0800
Repository: mythtv
Branch: master
New Revision: c4927c254ff6dde7759f704e751cff3729ef84ce
Changeset: https://github.com/MythTV/mythtv/commit/c4927c254
Log:
Fix jobqueue thread shutdown
Originally, this had a pthread_testcancel in the thread, and pthread_cancel in
the controlling code. I have changed this to get the same sort of controlled
thread shutdown that it used to have by putting in a flag for "processQueue".
When you want to exit that thread, tell it not to process anymore, and next
time the thread loops, it will exit (just like before with the testcancel at
the head of the loop).
Modified:
mythtv/libs/libmythtv/jobqueue.cpp
mythtv/libs/libmythtv/jobqueue.h
More information about the mythtv-commits
mailing list