librfn
An ad-hoc utility library
Data Structures | Functions | Variables
fibredemo.c File Reference
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include "librfn.h"

Go to the source code of this file.

Data Structures

union  update_event_t
 
struct  stopwatch_fibre_t
 

Functions

int update_handler (fibre_t *fibre)
 
int stopwatch_fibre (fibre_t *fibre)
 
int main (int argc, char *argv[])
 

Variables

update_event_t update_eventq [8]
 
fibre_eventq_t updater
 
stopwatch_fibre_t stopwatch
 

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 151 of file fibredemo.c.

int stopwatch_fibre ( fibre_t fibre)

Definition at line 95 of file fibredemo.c.

int update_handler ( fibre_t fibre)

Definition at line 43 of file fibredemo.c.

Variable Documentation

stopwatch_fibre_t stopwatch
Initial value:
= {
}
#define FIBRE_VAR_INIT(fn)
Static initializer for a fibre descriptor.
Definition: fibre.h:75
int stopwatch_fibre(fibre_t *fibre)
Definition: fibredemo.c:95

Definition at line 147 of file fibredemo.c.

update_event_t update_eventq[8]

Definition at line 80 of file fibredemo.c.

fibre_eventq_t updater
Initial value:
sizeof(update_eventq[0]))
int update_handler(fibre_t *fibre)
Definition: fibredemo.c:43
#define FIBRE_EVENTQ_VAR_INIT(fn, basep, base_len, msg_len)
Static initializer for a fibre and eventq descriptor.
Definition: fibre.h:94
update_event_t update_eventq[8]
Definition: fibredemo.c:80

Definition at line 81 of file fibredemo.c.