Lely core libraries 2.3.4
ev_thrd_loop Struct Reference

A thread-local event loop. More...

Collaboration diagram for ev_thrd_loop:

Data Fields

struct sllist queue
 The queue of pending tasks.
 
size_t ntasks
 The number of pending tasks.
 
int stopped
 A flag specifying whether the event loop is stopped.
 
int running
 A flag specifying whether ev_exec_run() is running on this thread.
 

Detailed Description

A thread-local event loop.

Definition at line 52 of file thrd_loop.c.

Field Documentation

◆ ntasks

size_t ev_thrd_loop::ntasks

The number of pending tasks.

This equals the number tasks in queue plus the number of calls to ev_exec_on_task_init() minus those to ev_exec_on_task_init(). ev_thrd_loop_stop() is called once this value reaches 0.

Definition at line 61 of file thrd_loop.c.


The documentation for this struct was generated from the following file: