mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:47:44 +00:00
Kernel+LibPthread: Remove m_ prefix for public members
This commit is contained in:
parent
648b4c7d74
commit
93c741018e
3 changed files with 63 additions and 63 deletions
|
@ -345,8 +345,8 @@ struct SC_getkeymap_params {
|
|||
};
|
||||
|
||||
struct SC_create_thread_params {
|
||||
unsigned int m_detach_state = 0; // JOINABLE or DETACHED
|
||||
int m_schedule_priority = 30; // THREAD_PRIORITY_NORMAL
|
||||
unsigned int detach_state = 0; // JOINABLE or DETACHED
|
||||
int schedule_priority = 30; // THREAD_PRIORITY_NORMAL
|
||||
// FIXME: Implement guard pages in create_thread (unreadable pages at "overflow" end of stack)
|
||||
// "If an implementation rounds up the value of guardsize to a multiple of {PAGESIZE},
|
||||
// a call to pthread_attr_getguardsize() specifying attr shall store in the guardsize
|
||||
|
|
|
@ -24,11 +24,11 @@ KResultOr<FlatPtr> Process::sys$create_thread(void* (*entry)(void*), Userspace<c
|
|||
if (!copy_from_user(¶ms, user_params))
|
||||
return EFAULT;
|
||||
|
||||
unsigned detach_state = params.m_detach_state;
|
||||
int schedule_priority = params.m_schedule_priority;
|
||||
unsigned stack_size = params.m_stack_size;
|
||||
unsigned detach_state = params.detach_state;
|
||||
int schedule_priority = params.schedule_priority;
|
||||
unsigned stack_size = params.stack_size;
|
||||
|
||||
auto user_sp = Checked<FlatPtr>((FlatPtr)params.m_stack_location);
|
||||
auto user_sp = Checked<FlatPtr>((FlatPtr)params.stack_location);
|
||||
user_sp += stack_size;
|
||||
if (user_sp.has_overflow())
|
||||
return EOVERFLOW;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue