Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

monitors.cpp File Reference

#include "xdprof.h"

Include dependency graph for monitors.cpp:

Include dependency graph

Go to the source code of this file.

Functions

void InitializeMonitors ()
 Initialize monitors. More...

void ShutdownMonitors ()
 Shut them down. More...


Variables

JVMPI_RawMonitor output_lock
 Used for output locking since cout isn't thread-safe. More...

JVMPI_RawMonitor methods_lock
 Used for Methods . More...

JVMPI_RawMonitor threads_lock
 Used for Threads . More...


Function Documentation

void InitializeMonitors ( )
 

Initialize monitors.

Definition at line 52 of file monitors.cpp.

Referenced by JVM_OnLoad().

00053 {
00054     output_lock     = CALL(RawMonitorCreate)("_output_lock");
00055     methods_lock    = CALL(RawMonitorCreate)("_methods_lock");
00056     threads_lock    = CALL(RawMonitorCreate)("_threads_lock");
00057 }

void ShutdownMonitors ( )
 

Shut them down.

Definition at line 62 of file monitors.cpp.

Referenced by NotifyEvent().

00063 {
00064     /*
00065     CALL(RawMonitorDestroy)(output_lock);
00066     CALL(RawMonitorDestroy)(data_lock);
00067     CALL(RawMonitorDestroy)(methods_lock);
00068     CALL(RawMonitorDestroy)(threads_lock);
00069     */
00070     unsafe_debug("Destroyed!", "");
00071 }


Variable Documentation

JVMPI_RawMonitor methods_lock
 

Used for Methods .

Definition at line 42 of file monitors.cpp.

JVMPI_RawMonitor output_lock
 

Used for output locking since cout isn't thread-safe.

Definition at line 37 of file monitors.cpp.

JVMPI_RawMonitor threads_lock
 

Used for Threads .

Definition at line 47 of file monitors.cpp.


Generated at Sun Jun 24 20:57:47 2001 for xdprof by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001