forked from Dynamitos/Seele
Fixing a boatload of warnings
This commit is contained in:
1 parent
f042480540
commit
d5f0fe644f
84 files changed
+496
-407
No files matched your search
@@ -1,6 +1,6 @@
|
||||
target_sources(SeeleEngine
|
||||
PRIVATE
|
||||
Fibers.h
|
||||
Fibers.cpp
|
||||
JobQueue.h
|
||||
JobQueue.cpp)
|
||||
#target_sources(SeeleEngine
|
||||
# PRIVATE
|
||||
# Fibers.h
|
||||
# Fibers.cpp
|
||||
# JobQueue.h
|
||||
# JobQueue.cpp)
|
||||
@@ -1,8 +1,6 @@
|
||||
#pragma once
|
||||
#include "MinimalEngine.h"
|
||||
#include "JobQueue.h"
|
||||
#include <atomic>
|
||||
#include <functional>
|
||||
|
||||
namespace Seele
|
||||
{
|
||||
@@ -67,14 +65,14 @@ public:
|
||||
private:
|
||||
std::atomic_uint64_t count;
|
||||
};
|
||||
DEFINE_REF(Counter);
|
||||
DEFINE_REF(Counter)
|
||||
struct AwaitCounter
|
||||
{
|
||||
PCounter counter;
|
||||
uint64 target;
|
||||
JobPriority priority = JobPriority::MEDIUM;
|
||||
bool await_ready() { return counter->greaterEqual(target); }
|
||||
void await_suspend(std::coroutine_handle<> h) {
|
||||
void await_suspend(std::coroutine_handle<>) {
|
||||
}
|
||||
void await_resume() {}
|
||||
};
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
#pragma once
|
||||
#include "MinimalEngine.h"
|
||||
#include "Containers/List.h"
|
||||
#include <coroutine>
|
||||
namespace Seele
|
||||
{
|
||||
namespace Fibers
|
||||
{
|
||||
class FiberJob;
|
||||
DECLARE_REF(Counter);
|
||||
DECLARE_REF(Counter)
|
||||
enum class JobPriority : size_t
|
||||
{
|
||||
HIGH = 0,
|
||||
|
||||
Reference in new issue
Block a user