- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm doing with BCM94343W, SDK 4.0.1. (internal DCT)
I just want to verify for 100% sure, since the code doesn't look like thread-safe to me.
Assume DCT is not thread-safe.
For our code we can use customized DCT routines that work with a mutex.
But what about all other code & binaries provided in stock SDK?
Is it enough if I naively protect WICED API <wiced_dct_write> with a mutex?
Are there other function calls (by networking / BLE or else) that also modifies DCT?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use lock or delegate real access to a given thread.
But you probably don't need to care that much because usually
you won't frequently access the DCT.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It's not thread safe at all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thx for comment.
So do you have any suggestion to make it safe?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use lock or delegate real access to a given thread.
But you probably don't need to care that much because usually
you won't frequently access the DCT.