mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-09 07:39:21 +00:00
* Check if the thread is active before sending a signal.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1124 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+4
-1
@@ -191,5 +191,8 @@ ThreadBase::call_queued_items() {
|
|||||||
void
|
void
|
||||||
ThreadBase::queue_item(thread_base_func newFunc) {
|
ThreadBase::queue_item(thread_base_func newFunc) {
|
||||||
m_threadQueue->push_back(newFunc);
|
m_threadQueue->push_back(newFunc);
|
||||||
pthread_kill(m_thread, SIGUSR1);
|
|
||||||
|
// Make it also restart inactive threads?
|
||||||
|
if (m_state == STATE_ACTIVE)
|
||||||
|
pthread_kill(m_thread, SIGUSR1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user