mirror of
https://github.com/ptitSeb/box64.git
synced 2025-10-14 02:38:54 +08:00
Update test10 (it was a bit flaky), update libstdc++ binary, and added fake __libc_single_threadedhandling
This commit is contained in:
@@ -2726,6 +2726,9 @@ EXPORT char* my___progname_full = NULL;
|
||||
EXPORT char* my_program_invocation_name = NULL;
|
||||
EXPORT char* my_program_invocation_short_name = NULL;
|
||||
|
||||
// ignoring this for now
|
||||
EXPORT char my___libc_single_threaded = 0;
|
||||
|
||||
#define PRE_INIT\
|
||||
if(box64_tcmalloc_minimal) \
|
||||
lib->priv.w.lib = dlopen(NULL, RTLD_LAZY | RTLD_GLOBAL); \
|
||||
|
@@ -2301,4 +2301,6 @@ GOM(__deregister_frame_info, pFp)
|
||||
DATAM(program_invocation_name, sizeof(void*))
|
||||
DATAM(program_invocation_short_name, sizeof(void*))
|
||||
|
||||
DATAM(__libc_single_threaded, 1)
|
||||
|
||||
GO(iconvctl, iFlip)
|
BIN
tests/test10
BIN
tests/test10
Binary file not shown.
@@ -11,6 +11,7 @@ std::stringstream stream;
|
||||
void append_number(int x) {
|
||||
while (lock_stream[x].load()) {}
|
||||
stream << "thread #" << x << '\n';
|
||||
stream.flush();
|
||||
if (x != 9) lock_stream[x + 1].store(false);
|
||||
}
|
||||
|
||||
|
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user