Skip to content

Commit

Permalink
3ds: use std::thread, Channels use std::recursive_mutex
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtleP committed Dec 18, 2023
1 parent d302493 commit 4c78a66
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 418 deletions.
4 changes: 2 additions & 2 deletions include/objects/channel/channel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ namespace love
uint64_t sent;
uint64_t received;

love::mutex mutex;
love::conditional condition;
love::recursive_mutex mutex;
love::condvar_any condition;

std::queue<Variant> queue;
};
Expand Down
14 changes: 14 additions & 0 deletions include/utilities/threads/threads.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#pragma once

#include <condition_variable>
#include <mutex>
#include <thread>

namespace love
{
using mutex = std::mutex;
using conditional = std::condition_variable;
using thread = std::thread;
using recursive_mutex = std::recursive_mutex;
using condvar_any = std::condition_variable_any;
} // namespace love
12 changes: 0 additions & 12 deletions platform/cafe/include/utilities/threads/threads.hpp

This file was deleted.

10 changes: 0 additions & 10 deletions platform/ctr/include/utilities/threads/threads.hpp

This file was deleted.

Loading

0 comments on commit 4c78a66

Please sign in to comment.