Skip to content

Commit

Permalink
Remove pthread_attr_getscope, which is optional
Browse files Browse the repository at this point in the history
This is part of the "TPS" Thread Execution Scheduling functionality,
and the corresponding set function is already not provided
  • Loading branch information
ArcaneNibble committed Aug 6, 2024
1 parent 424e7eb commit ba7cba6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion expected/wasm32-wasip1-threads/defined-symbols.txt
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,6 @@ pthread_attr_destroy
pthread_attr_getdetachstate
pthread_attr_getguardsize
pthread_attr_getschedparam
pthread_attr_getscope
pthread_attr_getstack
pthread_attr_getstacksize
pthread_attr_init
Expand Down
12 changes: 6 additions & 6 deletions libc-top-half/musl/src/thread/pthread_attr_get.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ int pthread_attr_getschedpolicy(const pthread_attr_t *restrict a, int *restrict
*policy = a->_a_policy;
return 0;
}

int pthread_attr_getscope(const pthread_attr_t *restrict a, int *restrict scope)
{
*scope = PTHREAD_SCOPE_SYSTEM;
return 0;
}
#else
int pthread_attr_getschedparam(const pthread_attr_t *restrict a, struct sched_param *restrict param)
{
Expand All @@ -37,12 +43,6 @@ int pthread_attr_getschedparam(const pthread_attr_t *restrict a, struct sched_pa
}
#endif

int pthread_attr_getscope(const pthread_attr_t *restrict a, int *restrict scope)
{
*scope = PTHREAD_SCOPE_SYSTEM;
return 0;
}

int pthread_attr_getstack(const pthread_attr_t *restrict a, void **restrict addr, size_t *restrict size)
{
if (!a->_a_stackaddr)
Expand Down

0 comments on commit ba7cba6

Please sign in to comment.