Fix data race on task refcount in psync_task_free (#377)
Acquire mutex before reading tm->refcnt to prevent race with psync_task_dec_refcnt(). Fixes ThreadSanitizer warning. Fixes #332 Co-authored-by: Levi Neely <lkn@darkstar.example.net>
This commit is contained in:
parent
82f56490b9
commit
427d1c51fe