Neonode zForce(TM) SDK

Classes | Typedefs | Functions
Queue.h File Reference

Generic Queue handling. More...

Go to the source code of this file.

## Classes
struct | Queue
| The Queue struct. More...

## Typedefs
typedef struct Queue | Queue

## Functions
DLLEXTERNAL Queue * | Queue_New (void)
| Create a new Queue. More...

## Detailed Description

Generic Queue handling.

Generic Queue handling. Receiver is responsible to destroy message after dequeuing.

Copyright
  COPYRIGHT NOTICE: (c) 2017-2022 Neonode Technologies AB. All rights reserved.

## Typedef Documentation

## ◆ Queue

typedef struct Queue Queue

See also
  struct Queue

## Function Documentation

## ◆ Queue_New()

DLLEXTERNAL Queue* Queue_New | ( | void |  | ) |

Create a new Queue.

Creates a new queue and all queue resources needed.
On failure, errno is set.

- EOUTOFMEMORY - Memory allocation failed.
- EQUEUECREATIONFAILED - Queue creation failed.
- EBADMUTEX - Bad Mutex pointer.
- EBADSEMAPHORE - Bad Semaphore pointer.

Returns
  A pointer to the new Queue.