Roxen.git/
server/
base_server/
roxen.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2009-01-11
2009-01-11 14:50:26 by Martin Stjernholm <mast@lysator.liu.se>
a28eca9af8d0bad3d43c02c7580e91263ab567c7 (
13
lines) (+
4
/-
9
)
[
Show
|
Annotate
]
Branch:
5.2
Let backend_thread be defined always.
Rev: server/base_server/roxen.pike:1.1012
6:
// Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others. // ABS and suicide systems contributed freely by Francesco Chemolli
-
constant cvs_version="$Id: roxen.pike,v 1.
1011
2009/01/
10
16
:
54
:
54
mast Exp $";
+
constant cvs_version="$Id: roxen.pike,v 1.
1012
2009/01/
11
14
:
50
:
26
mast Exp $";
//! @appears roxen //!
38:
inherit "module_support"; inherit "config_userdb";
-
#ifdef THREADS
-
// Used
when running threaded
to find out which thread is the backend thread.
+
// Used to find out which thread is the backend thread.
Thread.Thread backend_thread;
-
#endif /* THREADS */
+
// --- Locale defines ---
5168:
for(i=0; i < sizeof(threads); i++) { report_debug(">> ### Thread 0x%x%s:\n", threads[i]->id_number(),
-
#ifdef THREADS
+
threads[i] == backend_thread ? " (backend thread)" : ""
-
#else
-
""
-
#endif
+
); report_debug(">> " + replace (describe_backtrace (threads[i]->backtrace()),
5438:
report_debug("\bdisabled.\n"); #endif // SNMP_AGENT
-
#ifdef THREADS
+
backend_thread = this_thread();
-
+
#ifdef THREADS
name_thread( backend_thread, "Backend" ); #else report_debug("\n"