mpr/mpr.cpp File Reference

Library and application initialization. More...


Functions

char * mprGetCurrentThreadName ()
void mprSetDebugMode (bool on)


Detailed Description

Library and application initialization.

Overview:
The user instantiates the MR class in their application, typically in main(). Users can initialize the library by creating an instance of the Mpr class, or they can start the Mpr services such as the thread-task, timer and select modules.
Remarks:
This module is thread-safe.

Function Documentation

char * mprGetCurrentThreadName (  ) 

Synopsis:
Get the current thread name.
Overview:
Return a descriptive name for the current thread.
Returns:
Returns a pointer to the current threads name. Callers should not free this string.
See also:
mprMalloc, mprCalloc, mprRealloc

void mprSetDebugMode ( bool  on  ) 

Synopsis:
Turn on debug mode.
Overview:
Debug mode disables timeouts and timers. This makes debugging much easier.
Parameters:
on TRUE to disable debugging.
Stability classification:
Evolving.
Library:
libappweb

© Embedthis Software LLC, 2003-2009. All rights reserved. Embedthis is a trademark of Embedthis Software LLC.