* More work on threading.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1112 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2009-12-12 21:30:52 +00:00
parent ef6e4deca9
commit b635f8c852
15 changed files with 278 additions and 48 deletions
+6 -6
View File
@@ -118,16 +118,16 @@ SCgi::open(void* sa, unsigned int length) {
void
SCgi::activate() {
this_thread->poll()->open(this);
this_thread->poll()->insert_read(this);
this_thread->poll()->insert_error(this);
main_thread->poll()->open(this);
main_thread->poll()->insert_read(this);
main_thread->poll()->insert_error(this);
}
void
SCgi::deactivate() {
this_thread->poll()->remove_read(this);
this_thread->poll()->remove_error(this);
this_thread->poll()->close(this);
main_thread->poll()->remove_read(this);
main_thread->poll()->remove_error(this);
main_thread->poll()->close(this);
}
void