MT Core (C++)
Core library for replacing C++ standard in project usage
Loading...
Searching...
No Matches
inbox.hpp File Reference
#include "mtcore/colls/queue.hpp"
#include "mtcore_thread/channels.hpp"
#include "mtcore_thread/core.hpp"
#include <mutex>
Include dependency graph for inbox.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mtcore::thread::Inbox< T >
 Inter-thread communication primitive to send messages between threads Has a growable Queue. More...
 

Namespaces

namespace  mtcore
 Core library for C++ with Zig-related functionality.
 
namespace  mtcore::thread
 Thread-related namespace The methods and classes provided by this class are thread-safe Classes and methods provided outside of this class are not thread-safe (with the exception of malloc_alloc) This requires linking mtcore_thread to your application.
 

Enumerations

enum class  mtcore::thread::ChannelGrowTrySendErrors { mtcore::thread::ChannelGrowTrySendErrors::CHANNEL_CLOSED , mtcore::thread::ChannelGrowTrySendErrors::COULD_NOT_LOCK , mtcore::thread::ChannelGrowTrySendErrors::NO_ROOM , mtcore::thread::ChannelGrowTrySendErrors::ALLOCATION_FAILED }
 Errors for when trying to do non-blocking send (with possible allocation) fails. More...
 
enum class  mtcore::thread::ChannelGrowSendBlockErrors { mtcore::thread::ChannelGrowSendBlockErrors::CHANNEL_CLOSED , mtcore::thread::ChannelGrowSendBlockErrors::ALLOCATION_FAILED }
 Errors for when trying to do blocking send (with possible allocation) fails. More...
 
enum class  mtcore::thread::ChannelGrowSendBeforeErrors { mtcore::thread::ChannelGrowSendBeforeErrors::CHANNEL_CLOSED , mtcore::thread::ChannelGrowSendBeforeErrors::TIMEOUT , mtcore::thread::ChannelGrowSendBeforeErrors::ALLOCATION_FAILED }
 Errors for when trying to do timed blocking send (with possible allocation) fails. More...