MCPcopy Index your code
hub / github.com/RT-Thread/rt-thread / lwp_self

Function lwp_self

components/lwp/lwp.c:343–354  ·  view source on GitHub ↗

* @brief Get the current light-weight process * * @return Pointer to the current light-weight process structure * RT_NULL if no process is associated with current thread * * @note This function retrieves the light-weight process associated with the * currently running thread. */

Source from the content-addressed store, hash-verified

341 * currently running thread.
342 */
343struct rt_lwp *lwp_self(void)
344{
345 rt_thread_t tid;
346
347 tid = rt_thread_self();
348 if (tid)
349 {
350 return (struct rt_lwp *)tid->lwp;
351 }
352
353 return RT_NULL;
354}
355
356/**
357 * @brief Register a child process with its parent

Callers 15

lwp_from_pid_lockedFunction · 0.85
lwp_getpidFunction · 0.85
lwp_waitpidFunction · 0.85
lwp_execveFunction · 0.85
sys_futexFunction · 0.85
dbg_thread_in_debugFunction · 0.85
_lwp_shmatFunction · 0.85
_lwp_shmdtFunction · 0.85
sys_setsidFunction · 0.85
sys_getsidFunction · 0.85
lwp_brkFunction · 0.85
lwp_get_from_userFunction · 0.85

Calls 1

rt_thread_selfFunction · 0.85

Tested by

no test coverage detected