Buckets:
| /* | |
| * Copyright 2022 The Emscripten Authors. All rights reserved. | |
| * Emscripten is available under two separate licenses, the MIT license and the | |
| * University of Illinois/NCSA Open Source License. Both these licenses can be | |
| * found in the LICENSE file. | |
| */ | |
| static void proxied_raise(void* arg) { | |
| raise((intptr_t)arg); | |
| } | |
| int pthread_kill(pthread_t t, int sig) { | |
| if (sig < 0 || sig >= _NSIG) { | |
| return EINVAL; | |
| } | |
| if (!t || !_emscripten_thread_is_valid(t)) { | |
| return ESRCH; | |
| } | |
| if (sig == 0) return 0; // signal == 0 is a no-op. | |
| // The job of pthread_kill is basically to run the (process-wide) signal | |
| // handler on the target thread. | |
| if (pthread_equal(pthread_self(), t)) { | |
| raise(sig); | |
| } else { | |
| emscripten_proxy_async(emscripten_proxy_get_system_queue(), t, proxied_raise, (void*)(intptr_t)sig); | |
| } | |
| return 0; | |
| } | |
Xet Storage Details
- Size:
- 1.01 kB
- Xet hash:
- 27700aa1507d4e1e8909a7b350e0f35ffe7858736310a8ffaee9ddda17ba0140
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.