diff options
| author | josch <j.schauer@email.de> | 2023-03-26 08:59:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-26 09:59:00 +0200 |
| commit | 2ea036e02c3fe1374d32c23f795879623773a5ef (patch) | |
| tree | d6e66a89f5d54d11875a3a65b41356694442f70f /src/libtools/threads.c | |
| parent | f58ac3e9bf15251d902f22abea9685e7cbe55b2b (diff) | |
| download | box64-2ea036e02c3fe1374d32c23f795879623773a5ef.tar.gz box64-2ea036e02c3fe1374d32c23f795879623773a5ef.zip | |
fix some spelling mistakes (#640)
Diffstat (limited to 'src/libtools/threads.c')
| -rwxr-xr-x | src/libtools/threads.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libtools/threads.c b/src/libtools/threads.c index 7fc6e695..812e1943 100755 --- a/src/libtools/threads.c +++ b/src/libtools/threads.c @@ -128,7 +128,7 @@ int GetStackSize(x64emu_t* emu, uintptr_t attr, void** stack, size_t* stacksize) } mutex_unlock(&my_context->mutex_thread); } - // should a Warning be emited? + // should a Warning be emitted? *stack = emu->init_stack; *stacksize = emu->size_stack; return 0; @@ -535,7 +535,7 @@ EXPORT void my___pthread_register_cancel(void* E, void* B) { // get a stack local copy of the args, as may be live in some register depending the architecture (like ARM) if(cancel_deep<0) { - printf_log(LOG_NONE/*LOG_INFO*/, "BOX64: Warning, inconsistant value in __pthread_register_cancel (%d)\n", cancel_deep); + printf_log(LOG_NONE/*LOG_INFO*/, "BOX64: Warning, inconsistent value in __pthread_register_cancel (%d)\n", cancel_deep); cancel_deep = 0; } if(cancel_deep!=CANCEL_MAX-1) @@ -922,7 +922,7 @@ EXPORT int my_pthread_mutex_init(pthread_mutex_t *m, my_mutexattr_t *att) #ifdef MUTEX_OVERSIZED_8 uint64_t save = *(uint64_t*)(((uintptr_t)m) + 40); int ret = pthread_mutex_init(m, att?(&mattr.nat):NULL); - *(uint64_t*)(((uintptr_t)m) + 40) = save; // put back overwriten value. Nasty but should be fast and quite safe + *(uint64_t*)(((uintptr_t)m) + 40) = save; // put back overwritten value. Nasty but should be fast and quite safe #elif defined(MUTEX_SIZE_X64) int ret = pthread_mutex_init(m, att?(&mattr.nat):NULL); #else @@ -1141,4 +1141,4 @@ int checkUnlockMutex(void* m) } return 0; } -#endif \ No newline at end of file +#endif |