Skip to content

Commit c4b200c

Browse files
authored
Remove declaration of emscripten_force_num_logical_cores (#22722)
The function itself was removed back in #10166
1 parent 40e6b04 commit c4b200c

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

system/include/emscripten/threading.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,6 @@ int emscripten_has_threading_support(void);
2929
// Returns the number of logical cores on the system.
3030
int emscripten_num_logical_cores(void);
3131

32-
// Configures the number of logical cores on the system. This can be called at
33-
// startup to specify the number of cores emscripten_num_logical_cores()
34-
// reports. The Emscripten system itself does not use this value internally
35-
// anywhere, it is just a hint to help developers have a single access point
36-
// 'emscripten_num_logical_cores()' to query the number of cores in the system.
37-
void emscripten_force_num_logical_cores(int cores);
38-
3932
// If the given memory address contains value val, puts the calling thread to
4033
// sleep waiting for that address to be notified.
4134
// Returns -EINVAL if addr is null.

system/lib/pthread/library_pthread_stub.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ int emscripten_has_threading_support() { return 0; }
2121

2222
int emscripten_num_logical_cores() { return 1; }
2323

24-
void emscripten_force_num_logical_cores(int cores) {
25-
// no-op, in singlethreaded builds we will always report exactly one core.
26-
}
27-
2824
int emscripten_futex_wait(
2925
volatile void /*uint32_t*/* addr, uint32_t val, double maxWaitMilliseconds) {
3026
// nop

0 commit comments

Comments
 (0)