sys/newlib/syscalls.c: Add _getpid_r implementation
This commit is contained in:
parent
3551208f51
commit
b52c93fdc2
@ -113,6 +113,17 @@ int _getpid(void)
|
|||||||
return sched_active_pid;
|
return sched_active_pid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Get the process-ID of the current thread
|
||||||
|
*
|
||||||
|
* @return the process ID of the current thread
|
||||||
|
*/
|
||||||
|
pid_t _getpid_r(struct _reent *ptr)
|
||||||
|
{
|
||||||
|
(void) ptr;
|
||||||
|
return sched_active_pid;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Send a signal to a given thread
|
* @brief Send a signal to a given thread
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user