OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:Daemon
(Results
1 - 3
of
3
) sorted by null
/external/libbrillo/brillo/daemons/
daemon.h
23
//
Daemon
is a simple base class for system daemons. It provides a lot
26
// You can use this class directly to implement your
daemon
or you can
28
// brillo::
Daemon
. Override some of the virtual methods provide to fine-tune
29
// its behavior to suit your
daemon
's needs.
30
class BRILLO_EXPORT
Daemon
: public AsynchronousSignalHandlerInterface {
32
Daemon
();
33
virtual ~
Daemon
();
35
// Performs proper initialization of the
daemon
and runs the message loop.
36
// Blocks until the
daemon
is finished. The return value is the error
37
// code that should be returned from
daemon
's main(). Returns EX_OK (0) o
[
all
...]
daemon.cc
5
#include <brillo/daemons/
daemon
.h>
17
Daemon
::
Daemon
() : exit_code_{EX_OK} {
21
Daemon
::~
Daemon
() {
24
int
Daemon
::Run() {
30
base::Bind(&
Daemon
::OnEventLoopStartedTask, base::Unretained(this)));
45
void
Daemon
::Quit() { QuitWithExitCode(EX_OK); }
47
void
Daemon
::QuitWithExitCode(int exit_code) {
52
void
Daemon
::RegisterHandler
[
all
...]
/art/test/004-ThreadStress/src-art/
Main.java
39
// -d X .............. number of
daemon
threads
67
* continue when executed by a runner (non-
daemon
) thread.
604
// operations. Each
daemon
thread will loop over all
616
// numberOfDaemons elements are
daemon
threads.
638
: new
Daemon
(lock, t, operations, mainThread, startBarrier);
713
// The notifier thread is a
daemon
just loops forever to wake
734
// Create and start the
daemon
threads.
736
Main
daemon
= threadStresses[numberOfThreads + r];
local
737
Thread t = new Thread(
daemon
, "
Daemon
thread " + daemon.id)
[
all
...]
Completed in 85 milliseconds