Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
thread.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2020 Kaspar Schleiser <kaspar@schleiser.de>
3
* 2020 Freie Universität Berlin
4
* 2020 Inria
5
*
6
* This file is subject to the terms and conditions of the GNU Lesser
7
* General Public License v2.1. See the file LICENSE in the top level
8
* directory for more details.
9
*/
10
23
#ifndef EVENT_THREAD_H
24
#define EVENT_THREAD_H
25
26
#include <stddef.h>
27
28
#include "event.h"
29
30
#ifdef __cplusplus
31
extern
"C"
{
32
#endif
33
42
void
event_thread_init
(
event_queue_t
*queue,
char
*stack,
size_t
stack_size,
43
unsigned
priority);
44
45
#ifdef MODULE_EVENT_THREAD_HIGHEST
46
extern
event_queue_t
event_queue_highest;
47
#define EVENT_PRIO_HIGHEST (&event_queue_highest)
48
#endif
49
50
#ifdef MODULE_EVENT_THREAD_MEDIUM
51
extern
event_queue_t
event_queue_medium;
52
#define EVENT_PRIO_MEDIUM (&event_queue_medium)
53
#endif
54
55
#ifdef MODULE_EVENT_THREAD_LOWEST
56
extern
event_queue_t
event_queue_lowest;
57
#define EVENT_PRIO_LOWEST (&event_queue_lowest)
58
#endif
59
60
#ifdef __cplusplus
61
}
62
#endif
63
#endif
/* EVENT_THREAD_H */
64
event_queue_t
event queue structure
Definition:
event.h:150
event_thread_init
void event_thread_init(event_queue_t *queue, char *stack, size_t stack_size, unsigned priority)
Convenience function for initializing an event queue thread.
Generated on Tue Nov 24 2020 19:46:49 by
1.8.17