Files
tyra-linux/engine/inc/thread/threading.hpp
T
2022-08-14 18:05:57 +02:00

33 lines
632 B
C++

/*
# _____ ____ ___
# | \/ ____| |___|
# | | | \ | |
#-----------------------------------------------------------------------
# Copyright 2022, tyra - https://github.com/h4570/tyra
# Licensed under Apache License 2.0
# Sandro Sobczyński <sandro.sobczynski@gmail.com>
*/
#pragma once
#include <tamtypes.h>
#include <time.h>
namespace Tyra {
class Threading {
public:
Threading();
~Threading();
static void sleep(const u32& ms);
static void sleep(const timespec& tv);
static void switchThread();
private:
static timespec tv;
};
} // namespace Tyra