Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Linux/CC1310: _ATOMIC_local_unlock go into error when the mutex unlocked by other thread

$
0
0

Part Number:CC1310

Tool/software: Linux

Hello friends,

we are using SDK as bellow:

---linux stack gatew4ay sdk :ti154stack_linux_x64_2_04_00_19

---simplelink:simplelink_cc13x0_sdk_1_60_00_21

we implemented an app client send commands to linux collector through socket interface.

with very low probability, the process will exit with exception :  "unlock by non-owning thread".

from the code _ATOMIC_local_unlock() @ linux_specific.c:

if(!pthread_equal(pA->owner, pthread_self()))
{
/* we choose not to allow this.
* there are cases when this is valid.
* But we choose not to support this [for now]
* our view may change in the future. */
_atomic_fatal("unlock by non-owning thread\n");
}

 

could you pls give some comments on how to fix this?

thanks,

Harbor


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>