Skip to content

Commit 8c00475

Browse files
committed
add wasi thread
1 parent 17e6b20 commit 8c00475

File tree

6 files changed

+418
-6
lines changed

6 files changed

+418
-6
lines changed

include/fast_io_hosted/platforms/nt/nt_path.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#pragma once
1+
#pragma once
22

33
namespace fast_io::win32::nt::details
44
{

include/fast_io_hosted/platforms/win32_network/socket_file.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ struct win32_socket_event_guard_t
4646
curr_handle = {};
4747
return temp;
4848
}
49-
49+
5050
inline constexpr native_handle_type native_handle() const noexcept
5151
{
5252
return curr_handle;

include/fast_io_hosted/process/process/arg_env.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#pragma once
1+
#pragma once
22
namespace fast_io
33
{
44
struct default_args_t

include/fast_io_hosted/threads/thread/dos.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#pragma once
1+
#pragma once
22

33
#include <chrono>
44
#include <ranges>

include/fast_io_hosted/threads/thread/impl.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
#endif
88
#elif defined(__MSDOS__) || defined(__DJGPP__)
99
#include "dos.h"
10-
#elif !defined(__SINGLE_THREAD__) && !defined(__NEWLIB__) && \
11-
!defined(__MSDOS__) && !defined(__wasi__) && __has_include(<pthread.h>)
10+
#elif defined(__wasi__)
11+
#include "wasi.h"
12+
#elif !defined(__SINGLE_THREAD__) && !defined(__NEWLIB__) && !defined(__MSDOS__) && __has_include(<pthread.h>)
1213
#include "pthread.h"
1314
#endif

0 commit comments

Comments
 (0)