Skip to content
Commit 817fdb90 authored by Simon Ser's avatar Simon Ser
Browse files

shm: add safety assertions



Catch any API mis-use with an assert. This should abort when the
user calls unreferences the pool more times than it's referenced.

Also change the refcount check to explicitly check for positive
counts. That makes the condition more readable.

Signed-off-by: default avatarSimon Ser <contact@emersion.fr>
parent ccc9612e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment