arvidn
95cfc16bca
fix integer overflow in alert_manager
2018-06-02 15:16:08 +02:00
arvidn
8808eb7cdd
introduce a recursive mutex to protect the alert_manager, and hold the mutex while calling user callbacks and plugin hooks. This is required to ensure the underlying storage for alert allocations (in the stack allocators) is synchronized with the thread that may be accessing it
2018-05-01 23:17:51 +02:00
d-komarov
785f173df3
Revise alert priorities / torrent::on_resume_data_checked issue ( #2962 )
...
Most status alerts should have priorities above normal level. Good reason for this is resume data verification case. For a large torrent(having lots of pieces) whole alert queue will be overflowed
with a `piece_finished_alert` right after resume data has been verified. Thus alerts like `torrent_checked_alert`, `torrent_finished`, `state_changed_alert` will not go the alerts queue.
* Introduce alert_priority enumeration
* Bump state_changed_alert's priority
* Set dht_direct_response_alert priority to `critical`
2018-05-01 12:26:37 +02:00
arvidn
910ccc528f
deprecate torrent_added_alert in favor of add_torrent_alert
2017-03-26 22:48:17 -04:00
Arvid Norberg
95e348bef7
fix name clash with 'thread' on freebsd ( #664 )
2016-04-29 12:00:39 -04:00
arvidn
68abd7a44d
move out test_alert_manager from the main test (as it actually sleeps). also add some debug logging to it
2015-09-06 22:55:41 -04:00
Jakob Petsovits
cf9a009fb8
Avoid warnings when building tests.
2015-07-16 14:55:05 -04:00
arvidn
ac04ee5ef3
fix typo in settings_pack
2015-06-07 09:23:04 -04:00
Arvid Norberg
e35d8d3933
fix unit test
2015-05-31 17:28:37 +00:00
Arvid Norberg
c8443d0c7c
msvc fixes
2015-05-31 12:21:16 +00:00
Arvid Norberg
f9c9d0ad0d
merge small unit tests to make running the tests quicker. expand the test framework a bit. add ax_boost_random.m4 script to link against boost.random correctly from makefile.
2015-05-30 04:31:23 +00:00
Arvid Norberg
55a9e98dd0
extend test_alert_manager and clean up test_fast_extension and extend a little bit
2015-04-12 00:14:07 +00:00
Arvid Norberg
baaeac7809
extend some unit tests. primarily test_alert_manager and fixed a bug in alert_manager
2015-04-11 18:44:43 +00:00
Arvid Norberg
013ed36f09
landed alert_queue feature branch into trunk
2015-04-03 20:15:48 +00:00