about scif_mmap and memory protection using mutex

about scif_mmap and memory protection using mutex

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

3 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.

Zheng,

Unfortunately, your issue fell through the cracks.

Do you still need an answer?

Regards
--
Taylor

 

引文:

Taylor Kidd (Intel) 写道:

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 :)

Kommentar hinterlassen

Bitte anmelden, um einen Kommentar hinzuzufügen. Sie sind noch nicht Mitglied? Jetzt teilnehmen