Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
3be713d0
Commit
3be713d0
authored
Nov 22, 2009
by
Alexander Wiebel
Browse files
[ADD] automatically give the pthreads of the modules telling names
parent
ac3db61c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/kernel/WModule.cpp
src/kernel/WModule.cpp
+7
-0
No files found.
src/kernel/WModule.cpp
View file @
3be713d0
...
...
@@ -25,6 +25,9 @@
#include <set>
#include <string>
#include <sstream>
#ifdef __linux__
#include <sys/prctl.h>
#endif
#include <boost/shared_ptr.hpp>
...
...
@@ -254,6 +257,10 @@ void WModule::connectToGui()
void
WModule
::
threadMain
()
{
#ifdef __linux__
prctl
(
PR_SET_NAME
,
(
"walnut ("
+
getName
()
+
")"
).
c_str
()
);
#endif
try
{
WLogger
::
getLogger
()
->
addLogMessage
(
"Starting module main method."
,
"Module ("
+
getName
()
+
")"
,
LL_INFO
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment