mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 13:30:12 +01:00
Add queries to determine if a node is a list sentinal
This commit is contained in:
parent
31881908eb
commit
7c40a32054
1 changed files with 16 additions and 0 deletions
16
list.h
16
list.h
|
|
@ -140,6 +140,22 @@ struct exec_node {
|
|||
this->prev->next = before;
|
||||
this->prev = before;
|
||||
}
|
||||
|
||||
/**
|
||||
* Is this the sentinal at the tail of the list?
|
||||
*/
|
||||
bool is_tail_sentinal() const
|
||||
{
|
||||
return this->next == NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* Is this the sentinal at the head of the list?
|
||||
*/
|
||||
bool is_head_sentinal() const
|
||||
{
|
||||
return this->prev == NULL;
|
||||
}
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue