async_select  2.0.2
async_select
Functions
async_select_osal.c File Reference

Asynchronous network select implementation over OSAL API. More...

#include "async_select.h"
#include "async_select_configuration.h"
#include "osal.h"
#include <stddef.h>

Go to the source code of this file.

Functions

void async_select_request_fifo_init (void)
 Initializes the requests FIFOs. This function must be called prior to any call of async_select(). It can be called several times.
 
void async_select_task_main (void)
 The entry point for the async_select task. This function must be called from a dedicated task.
 
void async_select_lock (void)
 Enter critical section for the async_select component.
 
void async_select_unlock (void)
 Exit critical section for the async_select component.
 
 OSAL_task_stack_declare (async_select_task_stack, ASYNC_SELECT_TASK_STACK_SIZE)
 Stack of the async_select task.
 
int32_t async_select_init ()
 Initialize the async_select component. This function must be called prior to any call of async_select(). More...
 

Detailed Description

Asynchronous network select implementation over OSAL API.

Author
MicroEJ Developer Team
Version
2.0.2
Date
13 November 2020

Definition in file async_select_osal.c.

Function Documentation

§ async_select_init()

int32_t async_select_init ( void  )

Initialize the async_select component. This function must be called prior to any call of async_select().

Returns
0 on success, -1 on failure.

Definition at line 64 of file async_select_osal.c.

64  {
65  int32_t res;
66  res = async_select_start_task();
67  if(res == 0){
69  }
70  return res;
71 }
void async_select_request_fifo_init(void)
Initializes the requests FIFOs. This function must be called prior to any call of async_select()...
Definition: async_select.c:213