Main Page | Modules | Data Structures | File List | Data Fields | Related Pages

Memory allocation implementation details
[D-BUS internal implementation details]

internals of dbus_malloc() etc. More...

Data Structures

struct  ShutdownClosure
 This struct represents a function to be called on shutdown. More...

Typedefs

typedef ShutdownClosure ShutdownClosure
 Represents a function to be called on shutdown.

Functions

dbus_bool_t _dbus_register_shutdown_func (DBusShutdownFunction func, void *data)
 Register a cleanup function to be called exactly once the next time dbus_shutdown() is called.

Variables

int _dbus_current_generation = 1
 _dbus_current_generation is used to track each time that dbus_shutdown() is called, so we can reinit things after it's been called.

Detailed Description

internals of dbus_malloc() etc.

Implementation details related to allocating and releasing blocks of memory.


Function Documentation

dbus_bool_t _dbus_register_shutdown_func DBusShutdownFunction  func,
void *  data
 

Register a cleanup function to be called exactly once the next time dbus_shutdown() is called.

Parameters:
func the function
data data to pass to the function
Returns:
FALSE on not enough memory

Definition at line 704 of file dbus-memory.c.

References _DBUS_LOCK, _DBUS_UNLOCK, ShutdownClosure::data, dbus_new, ShutdownClosure::func, ShutdownClosure::next, and ShutdownClosure.


Variable Documentation

int _dbus_current_generation = 1
 

_dbus_current_generation is used to track each time that dbus_shutdown() is called, so we can reinit things after it's been called.

It is simply incremented each time we shut down.

Definition at line 675 of file dbus-memory.c.

Referenced by dbus_shutdown().


Generated on Sat Sep 25 19:17:14 2004 for D-BUS by  doxygen 1.3.8-20040913