Software Archive
Read-only legacy content
17061 Discussions

about scif_mmap and memory protection using mutex

siyao_z_
Beginner
473 Views

Hi,

After using scif_mmap to establish a piece of shared memory between card and host, is it possible to use a mutex (of some kind) to sync the access to the shared data in this piece of shared memory? I tried to use a portion of this shared memory range as a pthread mutex to be used by both sides(the mutex is set PTHREAD_PROCESS_SHARED attribute), but the mutex doesn't work on remote side. pthread_mutex_lock just hangs in an infinite loop. Is there any other methods that I can use as a mutex? Thanks guys!

Zheng Siyao

0 Kudos
2 Replies
TaylorIoTKidd
New Contributor I
473 Views

Zheng,

Unfortunately, your issue fell through the cracks.

Do you still need an answer?

Regards
--
Taylor

 

0 Kudos
siyao_z_
Beginner
473 Views

Taylor Kidd (Intel) wrote:

Zheng,

Unfortunately, your issue fell through the cracks.

Do you still need an answer?

Regards
--
Taylor

 

It would be great if there is an answer, I am still interested in this topic :)

0 Kudos
Reply