Thread Synch AOSV 2020
1.2
LKM for exchanging messages between threads
|
Contains a 'msg_t' structure and the relative delivery info. More...
#include <types.h>
Data Fields | |
msg_t | message |
struct list_head | recipient |
struct rw_semaphore | recipient_lock |
struct list_head | fifo_list |
Contains a 'msg_t' structure and the relative delivery info.
The recipient list contains the PIDs of thread that readed the message
msg_t t_message_deliver::message |
The message to deliver
struct list_head t_message_deliver::recipient |
PIDs of threads that have read 'message'
struct rw_semaphore t_message_deliver::recipient_lock |
Recipient list semaphore