mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 16:04:15 +01:00
ircd::ios: Minor cleanup; remove cruft.
This commit is contained in:
parent
1731ff8bad
commit
ea1a18adfe
2 changed files with 0 additions and 16 deletions
|
@ -43,7 +43,6 @@ namespace ircd::ios
|
||||||
struct defer;
|
struct defer;
|
||||||
struct post;
|
struct post;
|
||||||
|
|
||||||
extern const std::thread::id static_thread_id;
|
|
||||||
extern std::thread::id main_thread_id;
|
extern std::thread::id main_thread_id;
|
||||||
extern asio::io_context *user;
|
extern asio::io_context *user;
|
||||||
|
|
||||||
|
@ -51,7 +50,6 @@ namespace ircd::ios
|
||||||
const string_view &name(const handler &);
|
const string_view &name(const handler &);
|
||||||
|
|
||||||
bool is_main_thread();
|
bool is_main_thread();
|
||||||
bool is_static_thread();
|
|
||||||
void assert_main_thread();
|
void assert_main_thread();
|
||||||
|
|
||||||
bool available() noexcept;
|
bool available() noexcept;
|
||||||
|
@ -291,10 +289,3 @@ ircd::ios::is_main_thread()
|
||||||
return std::this_thread::get_id() == main_thread_id ||
|
return std::this_thread::get_id() == main_thread_id ||
|
||||||
main_thread_id == std::thread::id();
|
main_thread_id == std::thread::id();
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool
|
|
||||||
__attribute__((always_inline))
|
|
||||||
ircd::ios::is_static_thread()
|
|
||||||
{
|
|
||||||
return std::this_thread::get_id() == static_thread_id;
|
|
||||||
}
|
|
||||||
|
|
|
@ -10,13 +10,6 @@
|
||||||
|
|
||||||
#include <ircd/asio.h>
|
#include <ircd/asio.h>
|
||||||
|
|
||||||
/// Record of the ID of the thread static initialization took place on.
|
|
||||||
decltype(ircd::ios::static_thread_id)
|
|
||||||
ircd::ios::static_thread_id
|
|
||||||
{
|
|
||||||
std::this_thread::get_id()
|
|
||||||
};
|
|
||||||
|
|
||||||
/// "main" thread for IRCd; the one the main context landed on.
|
/// "main" thread for IRCd; the one the main context landed on.
|
||||||
decltype(ircd::ios::main_thread_id)
|
decltype(ircd::ios::main_thread_id)
|
||||||
ircd::ios::main_thread_id;
|
ircd::ios::main_thread_id;
|
||||||
|
|
Loading…
Reference in a new issue