15 #ifndef _RTEMS_SCORE_RESOURCEIMPL_H 16 #define _RTEMS_SCORE_RESOURCEIMPL_H 108 resource->
owner = NULL;
129 return resource->
owner;
137 resource->
owner = owner;
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(Chain_Control *the_chain, Chain_Node *the_node)
Append a node (unprotected).
Definition: chainimpl.h:743
Resource_Control * dependency
Reference to a resource in case this node has to wait for ownership of this resource.
Definition: resource.h:171
#define RTEMS_INLINE_ROUTINE
The following (in conjunction with compiler arguments) are used to choose between the use of static i...
Definition: basedefs.h:135
RTEMS_INLINE_ROUTINE void _Chain_Extract_unprotected(Chain_Node *the_node)
Extract this node (unprotected).
Definition: chainimpl.h:639
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(Chain_Control *the_chain)
Initialize this chain as empty.
Definition: chainimpl.h:613
Chain_Control Rivals
A chain of rivals waiting for resource ownership.
Definition: resource.h:198
Resource node to reflect ownership of resources and a dependency on a resource.
Definition: resource.h:150
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(const Chain_Control *the_chain)
Is the chain empty.
Definition: chainimpl.h:499
Resource_Node * owner
The owner of this resource.
Definition: resource.h:203
Chain_Node Node
Node to build a chain of rivals depending on a resource.
Definition: resource.h:156
Chain_Control Resources
A chain of resources owned by this node.
Definition: resource.h:163
RTEMS_INLINE_ROUTINE bool _Resource_Is_most_recently_obtained(const Resource_Control *resource, const Resource_Node *node)
Returns true if this is the most recently obtained resource of the node, and false otherwise...
Definition: resourceimpl.h:150
Resource_Node * root
Reference to the root of the resource tree.
Definition: resource.h:178
void _Resource_Iterate(Resource_Node *top, Resource_Node_visitor visitor, void *arg)
Iterates over all nodes of a resource dependency tree.
Definition: resourceiterate.c:28
RTEMS_INLINE_ROUTINE const Chain_Node * _Chain_Immutable_first(const Chain_Control *the_chain)
Return pointer to immutable chain's first node.
Definition: chainimpl.h:383
bool(* Resource_Node_visitor)(Resource_Node *node, void *arg)
Visitor function for resource node iteration.
Definition: resourceimpl.h:43
Chain_Node Node
Node to build a chain of resources owned by a resource node.
Definition: resource.h:191
RTEMS_INLINE_ROUTINE void _Chain_Prepend_unprotected(Chain_Control *the_chain, Chain_Node *the_node)
Prepend a node (unprotected).
Definition: chainimpl.h:787
Resource control to manage ownership and rival nodes depending on a resource.
Definition: resource.h:185