schedbase.cpp File Reference

#include <hn/hnprec.h>
#include <hn/schedbase.h>
#include <hn/gettickcount.h>
#include <hn/utils.h>
#include <hn/lambda_placeholders.h>
#include <hn/prefs.h>
#include <hn/ipv4addr.h>
#include <boost/multi_index_container.hpp>
#include <boost/multi_index/ordered_index.hpp>
#include <boost/multi_index/key_extractors.hpp>

Include dependency graph for schedbase.cpp:

Go to the source code of this file.


Namespaces

namespace  Detail

Functions

template<typename T, typename D>
void clearAndNotify (T &toRemove, T &toNotify, D &cont)
 Utility function, which performs sets clearing and notifications sending.

Function Documentation

template<typename T, typename D>
void clearAndNotify T &  toRemove,
T &  toNotify,
D &  cont
 

Utility function, which performs sets clearing and notifications sending.

Parameters:
toRemove Set containing requests to be removed/deleted
toNotify Set containing requests to be notified
cont Main container to remove the toRemove elements from

Definition at line 83 of file schedbase.cpp.

References CHECK.

Referenced by SchedBase::handleConnections(), SchedBase::handleDownloads(), and SchedBase::handleUploads().