Changeset View
Changeset View
Standalone View
Standalone View
src/util.h
Show First 20 Lines • Show All 358 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
template <typename TsetT, typename Tsrc> | template <typename TsetT, typename Tsrc> | ||||
inline void insert(std::set<TsetT> &dst, const Tsrc &src) { | inline void insert(std::set<TsetT> &dst, const Tsrc &src) { | ||||
dst.insert(src.begin(), src.end()); | dst.insert(src.begin(), src.end()); | ||||
} | } | ||||
} // namespace util | } // namespace util | ||||
/** | |||||
* On platforms that support it, tell the kernel the calling thread is | |||||
* CPU-intensive and non-interactive. See SCHED_BATCH in sched(7) for details. | |||||
* | |||||
* @return The return value of sched_setschedule(), or 1 on systems without | |||||
* sched_setchedule(). | |||||
*/ | |||||
int ScheduleBatchPriority(); | |||||
#endif // BITCOIN_UTIL_H | #endif // BITCOIN_UTIL_H |