Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
senf
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wiback
senf
Commits
03d542ac
Commit
03d542ac
authored
16 years ago
by
g0dil
Browse files
Options
Downloads
Patches
Plain Diff
Scheduler: Console 'events' command documentation
parent
211fc562
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Scheduler/Console/Executor.cc
+1
-1
1 addition, 1 deletion
Scheduler/Console/Executor.cc
Scheduler/Console/Executor.test.cc
+1
-1
1 addition, 1 deletion
Scheduler/Console/Executor.test.cc
Scheduler/EventManager.cc
+11
-1
11 additions, 1 deletion
Scheduler/EventManager.cc
with
13 additions
and
3 deletions
Scheduler/Console/Executor.cc
+
1
−
1
View file @
03d542ac
...
@@ -232,7 +232,7 @@ prefix_ void senf::console::Executor::help(std::ostream & output,
...
@@ -232,7 +232,7 @@ prefix_ void senf::console::Executor::help(std::ostream & output,
ParseCommandInfo
::
TokensRange
path
)
ParseCommandInfo
::
TokensRange
path
)
{
{
GenericNode
const
&
node
(
traverseNode
(
path
));
GenericNode
const
&
node
(
traverseNode
(
path
));
output
<<
prettyName
(
typeid
(
node
))
<<
" at "
<<
node
.
path
()
<<
"
\n\n
"
;
//
output << prettyName(typeid(node)) << " at " << node.path() << "\n\n";
node
.
help
(
output
);
node
.
help
(
output
);
output
<<
std
::
flush
;
output
<<
std
::
flush
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Scheduler/Console/Executor.test.cc
+
1
−
1
View file @
03d542ac
...
@@ -148,7 +148,7 @@ BOOST_AUTO_UNIT_TEST(executor)
...
@@ -148,7 +148,7 @@ BOOST_AUTO_UNIT_TEST(executor)
parser
.
parse
(
"help /dir2"
,
&
setCommand
);
parser
.
parse
(
"help /dir2"
,
&
setCommand
);
executor
(
os
,
commands
.
back
());
executor
(
os
,
commands
.
back
());
BOOST_CHECK_EQUAL
(
commands
.
back
().
builtin
(),
senf
::
console
::
ParseCommandInfo
::
BuiltinHELP
);
BOOST_CHECK_EQUAL
(
commands
.
back
().
builtin
(),
senf
::
console
::
ParseCommandInfo
::
BuiltinHELP
);
BOOST_CHECK_EQUAL
(
os
.
str
(),
"
senf::console::DirectoryNode at /dir2
\n\n
Helptext
\n
"
);
BOOST_CHECK_EQUAL
(
os
.
str
(),
"Helptext
\n
"
);
}
}
{
{
...
...
This diff is collapsed.
Click to expand it.
Scheduler/EventManager.cc
+
11
−
1
View file @
03d542ac
...
@@ -39,7 +39,17 @@
...
@@ -39,7 +39,17 @@
prefix_
senf
::
scheduler
::
detail
::
EventManager
::
EventManager
()
prefix_
senf
::
scheduler
::
detail
::
EventManager
::
EventManager
()
{
{
#ifndef SENF_DISABLE_CONSOLE
#ifndef SENF_DISABLE_CONSOLE
consoleDir_
().
add
(
"events"
,
senf
::
membind
(
&
EventManager
::
consoleEvents
,
this
));
consoleDir_
().
add
(
"events"
,
senf
::
membind
(
&
EventManager
::
consoleEvents
,
this
))
.
doc
(
"List all scheduler events sorted by priority
\n
"
"
\n
"
"Columns:
\n
"
" TP event type: fd - file descriptor, tm - timer, si - UNIX signal
\n
"
" NAME descriptive event name
\n
"
" ADDRESS address of event class instance
\n
"
" RUNCNT number of times, the event was called
\n
"
" S state: R - runnable, W - Waiting, '-' - event disabled
\n
"
" INFO further event specific information"
);
senf
::
console
::
sysdir
().
add
(
"scheduler"
,
consoleDir_
());
senf
::
console
::
sysdir
().
add
(
"scheduler"
,
consoleDir_
());
#endif
#endif
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment