Cogs.Foundation
Loading...
Searching...
No Matches
Namespaces | Typedefs | Functions
Threads.h File Reference
#include "../FoundationBase.h"
#include <future>
#include <mutex>
#include <thread>

Go to the source code of this file.

Namespaces

namespace  Cogs
 Main Cogs namespace.
 
namespace  Cogs::Threads
 

Typedefs

typedef std::thread Cogs::Thread
 
typedef std::mutex Cogs::Mutex
 
typedef std::lock_guard< Mutex > Cogs::LockGuard
 
typedef std::unique_lock< Mutex > Cogs::UniqueLock
 
template<typename T >
using Cogs::Future = std::future< T >
 

Functions

COGSFOUNDATION_API void Cogs::Threads::setName (Thread &thread, const std::string &name)
 
COGSFOUNDATION_API void Cogs::Threads::sleep (int milliseconds)
 
COGSFOUNDATION_API void Cogs::Threads::yield ()
 
COGSFOUNDATION_API size_t Cogs::Threads::hardwareConcurrency ()