This documenta- tion describes the current state of development.
Note that interfaces and functionality may still change.

Prokee Modules:
  A
  B
  C
  D
  E
  F
  G
  I
  L
  M
  N
  O
  P
  R
  S
  T
  U
  W

     open all    |    close all

GUI Elements:
  B
  C
  I
  M
  P
  R
  S
  T

     open all    |    close all

GUI Interactions:
  B
  F
  H
  S

     open all    |    close all

GUI Layouts:
  L

     open all    |    close all

Games/Demos:
  M

     open all    |    close all

Third Party Libraries:
  P
  F
  Z

     open all    |    close all

Information about this Website / Informationen zu dieser Webseite:
In case of any questions, or comments, please feel free to contact me via email at apoll500@gmail.com.

Module softtimer [Version: v01] (Interface AbsSoftTimerManager)

   [AbsSoftTimerManager]

Contents

Inheritance:
AbsSoftTimerManager
Implementations: SoftTimerManager

Constructors:
SoftTimerManager (version 1)
AbsSoftTimerManager *createSoftTimerManager(unsigned long int base_intervall)
SoftTimerManager (version 2)
AbsSoftTimerManager *createSoftTimerManager(unsigned long int base_intervall,AbsThreadMan *thrman)

Methods:
createSoftTimer (version 1)
int createSoftTimer(unsigned long int intervall,bool imm,void(*timer_callback)(AbsMsgItem *msg),AbsMsgItem *msg)
createSoftTimer (version 2)
int createSoftTimer(unsigned long int intervall,bool imm,AbsThread *thr,AbsMsgItem *msg)
destroySoftTimer
int destroySoftTimer(int timerId)
startBaseTimer
void startBaseTimer()
stopBaseTimer
void stopBaseTimer()
updateTimers
void updateTimers()

Constructors

   SoftTimerManager (version 1)


This creates a new SoftTimerManager.

Constructor:
SoftTimerManager(unsigned long int base_intervall)

Factory Method:
AbsSoftTimerManager *AbsSoftTimerManagerInterface::createSoftTimerManager(unsigned long int base_intervall)

Wrapper Class:
SoftTimerManagerWrapper(unsigned long int base_intervall)

The static method AbsSoftTimerManagerInterface::createSoftTimerManager creates a new instance of class SoftTimerManager.

Parameters:
Type Name Direction Description
unsigned long int base_intervall

Return value:
Returns an instance of SoftTimerManager.

   SoftTimerManager (version 2)


This creates a new SoftTimerManager.

This constructor uses a ThreadMan object to manage the timer thread.

Constructor:
SoftTimerManager(unsigned long int base_intervall,AbsThreadMan *thrman)

Factory Method:
AbsSoftTimerManager *AbsSoftTimerManagerInterface::createSoftTimerManager(unsigned long int base_intervall,AbsThreadMan *thrman)

Wrapper Class:
SoftTimerManagerWrapper(unsigned long int base_intervall,AbsThreadMan *thrman)

The static method AbsSoftTimerManagerInterface::createSoftTimerManager creates a new instance of class SoftTimerManager.

Parameters:
Type Name Direction Description
unsigned long int base_intervall
AbsThreadMan *thrman

Return value:
Returns an instance of SoftTimerManager.


Methods

   createSoftTimer (version 1)


Creates a new soft timer.

Signature:
int createSoftTimer(unsigned long int intervall,bool imm,void(*timer_callback)(AbsMsgItem *msg),AbsMsgItem *msg)

Parameters:
Type Name Direction Description
unsigned long int intervall
bool imm
void(*timer_callback)
(
   AbsMsgItem *msg
)
with typedef
TypeName
SoftTimerCallbackFunctiontimer_callback
[IN] The callback function.
Parameter
msg:
AbsMsgItem *msg


Return value:
The timer-id of the new soft timer.

   createSoftTimer (version 2)


Creates a new soft timer.

Signature:
int createSoftTimer(unsigned long int intervall,bool imm,AbsThread *thr,AbsMsgItem *msg)

Parameters:
Type Name Direction Description
unsigned long int intervall
bool imm
AbsThread *thr
AbsMsgItem *msg


Return value:
The timer-id of the new soft timer.

   destroySoftTimer


Destroys a soft timer.

Signature:
int destroySoftTimer(int timerId)

Parameters:
Type Name Direction Description
int timerIdThe timer-id of a soft timer, as returned by createSoftTimer().


Return value:
The function returns 0 on successful deletion of the specified timer. If the timer, with the ID timerId does not exist, the function returns 1.

   startBaseTimer


This resumes execution of a paused SoftTimerManager.

Signature:
void startBaseTimer()

   stopBaseTimer


This pauses the execution of the SoftTimerManager.

Signature:
void stopBaseTimer()

   updateTimers


Call this to update the list of soft timers.

Signature:
void updateTimers()


Copyright © 2017 - 2019 by Andreas Pollhammer