-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
85 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# ====================================================================== | ||
# \title Os/Models/Queue.fpp | ||
# \brief FPP type definitions for Os/Queue.hpp concepts | ||
# ====================================================================== | ||
|
||
module Os { | ||
@ FPP shadow-enum representing Os::Queue::Status | ||
enum QueueStatus { | ||
OP_OK, @< message sent/received okay | ||
ALREADY_CREATED, @< creating an already created queue | ||
EMPTY, @< If non-blocking, all the messages have been drained. | ||
UNINITIALIZED, @< Queue wasn't initialized successfully | ||
SIZE_MISMATCH, @< attempted to send or receive with buffer too large, too small | ||
SEND_ERROR, @< message send error | ||
RECEIVE_ERROR, @< message receive error | ||
INVALID_PRIORITY, @< invalid priority requested | ||
FULL, @< queue was full when attempting to send a message | ||
UNKNOWN_ERROR @< Unexpected error; can't match with returns | ||
} | ||
|
||
@ FPP shadow-enum representing Os::Queue::BlockingType | ||
enum QueueBlockingType { | ||
BLOCKING, @< Message will block until space is available | ||
NONBLOCKING @< Message will return with status when space is unavailable | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters