示例#1
0
static Thread_queue_Link *_Thread_queue_Link_find(
    Thread_queue_Links *links,
    Thread_queue_Queue *source
)
{
    return _RBTree_Find_inline(
               &links->Links,
               source,
               _Thread_queue_Link_equal,
               _Thread_queue_Link_less,
               _Thread_queue_Link_map
           );
}
示例#2
0
文件: threadmp.c 项目: Dipupo/rtems
Thread_Control *_Thread_MP_Find_proxy (
  Objects_Id  the_id
)
{
  Thread_Proxy_control *the_proxy;
  ISR_lock_Context      lock_context;

  _Thread_MP_Proxies_acquire( &lock_context );

  the_proxy = _RBTree_Find_inline(
    &_Thread_MP_Active_proxies,
    &the_id,
    _Thread_MP_Proxy_equal,
    _Thread_MP_Proxy_less,
    _Thread_MP_Proxy_map
  );

  _Thread_MP_Proxies_release( &lock_context );

  return (Thread_Control *) the_proxy;
}