ZFFramework
 
Loading...
Searching...
No Matches
ZFPInterface_ZFSemaphore Class Referenceabstract

protocol for ZFThread (used in ZFSemaphore) More...

#include <ZFProtocolZFSemaphore.h>

Inheritance diagram for ZFPInterface_ZFSemaphore:
ZFProtocol

Public Member Functions

virtual const zfcharprotocolName (void) const
 get the name of the protocol module, e.g. "ZFObject"
 
virtual void * nativeSemaphoreCreate (ZFSemaphore *semaphore)=0
 create native semaphore
 
virtual void nativeSemaphoreDestroy (ZFSemaphore *semaphore, void *nativeSemaphore)=0
 create native semaphore
 
virtual void semaphoreLock (ZFSemaphore *semaphore)=0
 called before signal / broadcast / wait
 
virtual void semaphoreUnlock (ZFSemaphore *semaphore)=0
 called after signal / broadcast / wait
 
virtual void semaphoreSignal (ZFSemaphore *semaphore)=0
 see ZFSemaphore::semaphoreSignal
 
virtual void semaphoreBroadcast (ZFSemaphore *semaphore)=0
 see ZFSemaphore::semaphoreBroadcast
 
virtual void semaphoreWait (ZFSemaphore *semaphore)=0
 see ZFSemaphore::semaphoreWait
 
virtual zfbool semaphoreWait (ZFSemaphore *semaphore, zftimet miliSecsTimeout)=0
 see ZFSemaphore::semaphoreWait
 
- Public Member Functions inherited from ZFProtocol
virtual void protocolOnInit (void)
 called to init the protocol
 
virtual void protocolOnInitFinish (void)
 see protocolOnInit
 
virtual void protocolOnDeallocPrepare (void)
 see protocolOnInit
 
virtual void protocolOnDealloc (void)
 see protocolOnInit
 
virtual ZFProtocolInstanceState protocolInstanceState (void)
 protocol instance's state
 
virtual const zfcharprotocolImplName (void) const
 get the name of the protocol implementation, e.g. "ZFObject_default"
 
virtual ZFProtocolLevel protocolImplLevel (void) const
 get the level of the protocol implementation
 
virtual const zfcharprotocolImplPlatformHint (void) const
 get type hint of the implementation or empty string if not defined, e.g. "iOS:NSString" for iOS's string impl, use ZFPROTOCOL_IMPLEMENTATION_PLATFORM_HINT to register
 
virtual void objectInfoT (zfstring &ret) const
 see objectInfo
 
virtual zfstring objectInfo (void) const
 get a short info about this object
 

Protected Types

typedef ZFProtocol zfsuper
 class ref to super
 
typedef ZFPInterface_ZFSemaphore zfself
 class ref to self
 

Detailed Description

protocol for ZFThread (used in ZFSemaphore)

Member Function Documentation

◆ protocolName()

virtual const zfchar * ZFPInterface_ZFSemaphore::protocolName ( void ) const
inlinevirtual

get the name of the protocol module, e.g. "ZFObject"

Reimplemented from ZFProtocol.


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