Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kPeriodic.h
Go to the documentation of this file.
1 
10 #ifndef K_API_PERIODIC_H
11 #define K_API_PERIODIC_H
12 
13 #include <kApi/kApiDef.h>
14 
15 kBeginHeader()
16 
17 
23 //typedef kObject kPeriodic; --forward-declared in kApiDef.x.h
24 
25 
26 typedef kStatus(kCall *kPeriodicElapsedFx) (kPointer context, kPeriodic timer);
27 
36 kFx(kStatus) kPeriodic_Construct(kPeriodic* timer, kAlloc allocator);
37 
54 kFx(kStatus) kPeriodic_Start(kPeriodic timer, k64u period, kPeriodicElapsedFx onElapsed, kPointer context);
55 
67 kFx(kStatus) kPeriodic_Stop(kPeriodic timer);
68 
79 kFx(kBool) kPeriodic_Enabled(kPeriodic timer);
80 
81 kEndHeader()
82 
83 #include <kApi/Threads/kPeriodic.x.h>
84 
85 #endif
Represents a 64-bit unsigned integer.
Represents a void pointer.
Abstract base class for memory allocator types.
kBool kPeriodic_Enabled(kPeriodic timer)
Reports whether periodic timer callbacks are currently enabled.
kStatus kPeriodic_Stop(kPeriodic timer)
Stops timer callbacks.
Core Zen type declarations.
kStatus kPeriodic_Construct(kPeriodic *timer, kAlloc allocator)
Constructs a kPeriodic object.
Represents an error code.
kStatus kPeriodic_Start(kPeriodic timer, k64u period, kPeriodicElapsedFx onElapsed, kPointer context)
Starts callbacks at the specified period.
#define kCall
kApi standard function calling convention.
Definition: kApiDef.h:17
Represents a boolean value.
Provides a periodic function call.