2014-07-31 00:35:19 +00:00
|
|
|
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
|
2014-09-10 01:54:53 +00:00
|
|
|
#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
|
|
|
|
2014-09-15 20:11:39 +00:00
|
|
|
/** @brief Launch the scheduler.
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* @code{.cpp}
|
|
|
|
* boost::thread scheduler_thread(osquery::initializeScheduler);
|
|
|
|
* // do some other stuff
|
|
|
|
* scheduler_thread.join();
|
|
|
|
* @endcode
|
|
|
|
*/
|
2014-09-15 18:26:16 +00:00
|
|
|
void initializeScheduler();
|
2014-08-15 07:25:30 +00:00
|
|
|
}
|