util/co-shared-resource: Remove unused co_try_get_from_shres
co_try_get_from_shres hasn't been used since it was added in
55fa54a789 ("co-shared-resource: protect with a mutex")
(Everyone uses the _locked version)
Remove it.
Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
Message-Id: <20240918124220.27871-1-dave@treblig.org>
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
This commit is contained in:
parent
e84af3eb72
commit
b74987cd3b
2 changed files with 0 additions and 13 deletions
|
|
@ -44,13 +44,6 @@ SharedResource *shres_create(uint64_t total);
|
|||
*/
|
||||
void shres_destroy(SharedResource *s);
|
||||
|
||||
/*
|
||||
* Try to allocate an amount of @n. Return true on success, and false
|
||||
* if there is too little left of the collective resource to fulfill
|
||||
* the request.
|
||||
*/
|
||||
bool co_try_get_from_shres(SharedResource *s, uint64_t n);
|
||||
|
||||
/*
|
||||
* Allocate an amount of @n, and, if necessary, yield until
|
||||
* that becomes possible.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue