nlib
nlib_mq_attr Struct Reference

Structure to store the settings and current status of a message queue. More...

#include "nn/nlib/Platform.h"

Public Attributes

Message Queue

See nlib_mq_open() for the features of nlib message queue.

int32_t flag
 Settings to be used when creating a message queue.

Value Description
NLIB_MQ_BLOCK When reading an empty queue or writing into a full queue, blocks and waits.
NLIB_MQ_NONBLOCKReturns an error (EAGAIN) when it would normally blocks.
NLIB_MQ_LOCKFREECreates a lock-free queue. Returns an error (EAGAIN) when it would normally blocks.

 
int32_t max_msg
 When creating a message queue, you can set the maximum number of messages.
 
int32_t cur_msg
 For a queue other than a lock-free queue, you can obtain the number of messages that are currently in that message queue.
 
nlib_mq_msg_destructor destructor
 A destructor function for a message taken from a message queue can be set or obtained.
 

Detailed Description

Structure to store the settings and current status of a message queue.

Definition at line 797 of file Platform.h.


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