mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-13 05:32:31 +00:00
* Fixed a buffer overflow when writting to the output buffer. This
would in some rare occasions cause memory to be corrupted. leading to a crash. * Added option for setting the http proxy and proccess's umask. * Save the total uploaded for downloads between sessions. * Moved from sigc++ to my own lightweight slot class for the task scheduler. This saves some 5-600kb when compiled with debugging symbols, 1-200kb without. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@605 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
|
||||
#include <list>
|
||||
#include <rak/timer.h>
|
||||
#include <sigc++/slot.h>
|
||||
#include <rak/functional_fun.h>
|
||||
|
||||
namespace utils {
|
||||
|
||||
@@ -47,10 +47,10 @@ namespace utils {
|
||||
|
||||
class TaskItem {
|
||||
public:
|
||||
typedef sigc::slot<void> Slot;
|
||||
typedef rak::function<void> Slot;
|
||||
typedef std::list<std::pair<rak::timer, TaskItem*> >::iterator iterator;
|
||||
|
||||
TaskItem(Slot s = Slot()) : m_slot(s) {}
|
||||
TaskItem() {}
|
||||
|
||||
Slot& get_slot() { return m_slot; }
|
||||
void set_slot(Slot s) { m_slot = s; }
|
||||
|
||||
Reference in New Issue
Block a user