rakshasa
7689059dbc
Cleaned up thread code.
2013-04-03 21:16:11 +09:00
rakshasa
3b2a47a6d0
Use thread_base::interrupt for all SIGUSR1 interrupt signals and don't set a handler if it's not supported.
2013-03-03 05:00:31 +09:00
rakshasa
47125b9c38
Moved main thread object to libtorrent.
2012-02-12 21:58:16 +09:00
Jari Sundell
0626dcf783
C++11 fixes.
2011-12-27 16:45:19 +09:00
Jari Sundell
007d83e904
Moved code from ThreadBase to torrent::thread_base.
2011-12-19 03:20:42 +09:00
Jari Sundell
1c1993acef
Cleaned up code.
2011-12-14 13:38:16 +09:00
Jari Sundell
ee859a6137
Removed deprecated PollManager files.
2011-12-12 03:32:36 +09:00
Jari Sundell
89213982d5
Moving thread code to libtorrent.
2011-12-12 00:03:50 +09:00
rakshasa
4d313e6353
Updated copyright information.
...
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1301 e378c898-3ddf-0310-93e7-cc216c733640
2011-10-09 06:30:14 +00:00
rakshasa
4914d798f1
* Changing push_log calls to the new logging facility.
...
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1284 e378c898-3ddf-0310-93e7-cc216c733640
2011-09-21 05:07:06 +00:00
rakshasa
ce16621707
* Fixed a potential issue causing high loads while waiting for main thread to exit polling. #2661
...
* Added 'strings.choke_heuristics.{upload,download}' and extra dummy upload/download heuristics for testings.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1263 e378c898-3ddf-0310-93e7-cc216c733640
2011-08-06 05:20:18 +00:00
rakshasa
5691233bf1
* Properly retry connection when non-/encrypted handshakes fail.
...
* Added test cases for ranges.
* Added a simple utility for torrent files.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1190 e378c898-3ddf-0310-93e7-cc216c733640
2011-01-13 13:13:58 +00:00
rakshasa
7e554e8b1b
* Fixed various valgrind warnings.
...
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1189 e378c898-3ddf-0310-93e7-cc216c733640
2010-11-10 11:40:28 +00:00
rakshasa
4013fd6b98
* Properly set ThreadMain::m_thread to pthread_self().
...
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1185 e378c898-3ddf-0310-93e7-cc216c733640
2010-11-06 11:58:47 +00:00
rakshasa
b8d319a2fc
* Fixed a race condition where the releasing of the global lock before calling polling would cause problems. Now a thread that acquires the global lock and wants to remove or change fd's from the main thread.
...
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1182 e378c898-3ddf-0310-93e7-cc216c733640
2010-10-22 11:31:11 +00:00
rakshasa
2d3e12387d
* 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
2010-02-02 23:17:49 +00:00
rakshasa
5ad2eff8c9
* Allow interrupting a thread's polling through SIGUSR1. Used to signal events across threads.
...
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1121 e378c898-3ddf-0310-93e7-cc216c733640
2009-12-30 07:27:43 +00:00
rakshasa
8987be3001
* Fixed some minor compiler warnings/errors.
...
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1119 e378c898-3ddf-0310-93e7-cc216c733640
2009-12-26 11:16:21 +00:00
rakshasa
2c7563825c
* Added shutdown for worker thread.
...
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1117 e378c898-3ddf-0310-93e7-cc216c733640
2009-12-22 03:29:47 +00:00
rakshasa
5470e50ffb
* Added autoconf support for cacheline_aligned and SMP_CACHE_BYTES.
...
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1115 e378c898-3ddf-0310-93e7-cc216c733640
2009-12-18 21:56:14 +00:00
rakshasa
2304983f4f
* Finished the foundation of threading.
...
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1114 e378c898-3ddf-0310-93e7-cc216c733640
2009-12-15 21:39:35 +00:00
rakshasa
6a94909647
* More work on the threading stuff.
...
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1113 e378c898-3ddf-0310-93e7-cc216c733640
2009-12-14 21:18:51 +00:00
rakshasa
b635f8c852
* More work on threading.
...
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1112 e378c898-3ddf-0310-93e7-cc216c733640
2009-12-12 21:30:52 +00:00
rakshasa
ef6e4deca9
* Foundation for multi-threaded support.
...
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1111 e378c898-3ddf-0310-93e7-cc216c733640
2009-12-12 15:32:04 +00:00
rakshasa
3359c2bbb0
* Some commands were not using the new "log.tracker" name. Ticket #1888 .
...
* Fixed crash on empty bitfield in 'd.bitfield'.
* Fixes a file handle leak in the execute_capture functions. Patch by Josef Drexler.
* Moved ThreadBase to ./src as ./src/utils caused linker problems due to core::PollManager::create_poll_manager().
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1102 e378c898-3ddf-0310-93e7-cc216c733640
2009-11-15 06:36:01 +00:00