Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
ipcLockService Class Reference

#include <ipcLockService.h>

Inheritance diagram for ipcLockService:
Inheritance graph
Collaboration diagram for ipcLockService:
Collaboration graph

List of all members.

Public Member Functions

NS_HIDDEN_ (nsresult) Init()
void acquireLock (in string aLockName, in boolean aWaitIfBusy)
 Call this method to acquire a named interprocess lock.
void releaseLock (in string aLockName)
 Call this method to release a named lock.
void onMessageAvailable (in unsigned long aSenderID, in nsIDRef aTarget,[array, const, size_is(aDataLen)] in octet aData, in unsigned long aDataLen)

Private Attributes

PRUintn mTPIndex

Detailed Description

Definition at line 47 of file ipcLockService.h.

Member Function Documentation

void ipcILockService::acquireLock ( in string  aLockName,
in boolean  aWaitIfBusy 
) [inherited]

Call this method to acquire a named interprocess lock.

aLockNamespecifies the name of the lock
aWaitIfBusywait for the lock to become available; otherwise, fail if lock is already held by some other process.
void ipcIMessageObserver::onMessageAvailable ( in unsigned long  aSenderID,
in nsIDRef  aTarget,
[array, const, size_is(aDataLen)] in octet  aData,
in unsigned long  aDataLen 
) [inherited]
aSenderIDthe client id of the sender of this message. if sent by the daemon (or a deamon module), then this will have a value of 0.
aTargetthe target of the message, corresponding to the target this observer was registered under. this parameter is passed to allow an observer instance to receive messages for more than one target.
aDatathe data of the message.
aDataLenthe data length of the message.
void ipcILockService::releaseLock ( in string  aLockName) [inherited]

Call this method to release a named lock.

aLockNamespecifies the name of the lock

Member Data Documentation

PRUintn ipcLockService::mTPIndex [private]

Definition at line 58 of file ipcLockService.h.

The documentation for this class was generated from the following file: