Skip to content
Commit 8b578bdc authored by Jukka Rissanen's avatar Jukka Rissanen Committed by Andrew Boie
Browse files

lib: os: Add refcounting to fdtable entries



Use proper refcounting instead of magic value in obj field
when checking whether the fd is still in use. This will make
sure that if fd is shared between two threads, we do not
release it too soon.

Signed-off-by: default avatarJukka Rissanen <jukka.rissanen@linux.intel.com>
parent 1e9ae210
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment