osquery-1/include/osquery/scheduler.h

22 lines
539 B
C
Raw Normal View History

2014-07-31 00:35:19 +00:00
// Copyright 2004-present Facebook. All Rights Reserved.
#pragma once
2014-07-31 00:35:19 +00:00
2014-08-15 07:25:30 +00:00
namespace osquery {
2014-07-31 00:35:19 +00:00
/**
* @brief Launch the scheduler.
2014-09-15 20:11:39 +00:00
*
* osquery comes with a scheduler, which schedules a variety of things. This
* is one of the core parts of the osqueryd daemon. To use this, simply use
* this function as your entry point when creating a new thread.
2014-09-15 20:11:39 +00:00
*
* @code{.cpp}
* boost::thread scheduler_thread(osquery::initializeScheduler);
* // do some other stuff
* scheduler_thread.join();
* @endcode
2014-09-15 20:11:39 +00:00
*/
2014-09-15 18:26:16 +00:00
void initializeScheduler();
2014-08-15 07:25:30 +00:00
}