mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 18:08:53 +00:00
21 lines
544 B
C++
21 lines
544 B
C++
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
namespace osquery {
|
|
|
|
/** @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
|
|
*/
|
|
void initializeScheduler();
|
|
}
|