mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
SCRIPT namespace replacements
This commit is contained in:
committed by
Peter Johnson
parent
ae6c043632
commit
9aca8e0fd6
@@ -18,7 +18,7 @@
|
||||
#include "wpi/util/Signal.h"
|
||||
#include "wpi/util/mutex.hpp"
|
||||
|
||||
namespace wpi::uv {
|
||||
namespace wpi::net::uv {
|
||||
|
||||
/**
|
||||
* Async handle.
|
||||
@@ -121,10 +121,10 @@ class Async final : public HandleImpl<Async<T...>, uv_async_t> {
|
||||
/**
|
||||
* Signal generated (on event loop thread) when the async event occurs.
|
||||
*/
|
||||
sig::Signal<T...> wakeup;
|
||||
wpi::util::sig::Signal<T...> wakeup;
|
||||
|
||||
private:
|
||||
wpi::mutex m_mutex;
|
||||
wpi::util::mutex m_mutex;
|
||||
std::vector<std::tuple<T...>> m_data;
|
||||
std::weak_ptr<Loop> m_loop;
|
||||
};
|
||||
@@ -190,12 +190,12 @@ class Async<> final : public HandleImpl<Async<>, uv_async_t> {
|
||||
/**
|
||||
* Signal generated (on event loop thread) when the async event occurs.
|
||||
*/
|
||||
sig::Signal<> wakeup;
|
||||
wpi::util::sig::Signal<> wakeup;
|
||||
|
||||
private:
|
||||
std::weak_ptr<Loop> m_loop;
|
||||
};
|
||||
|
||||
} // namespace wpi::uv
|
||||
} // namespace wpi::net::uv
|
||||
|
||||
#endif // WPINET_WPINET_SRC_MAIN_NATIVE_INCLUDE_WPI_NET_UV_ASYNC_HPP_
|
||||
|
||||
Reference in New Issue
Block a user