google chrome extension - Looking for some mutex-like mechanism for exclusive USB access -


i'm working on various usb hardware devices, each of implementing serial port. i'd access such serial ports multiple (chrome , non-chrome) applications running on system in pseudo-parallel fashion.

basically i'd use mutex-like atomic primitive make sure 1 application has access serial port @ same time , others temporarily blocked, waiting mutex released.

i'm afraid chrome api doesn't offer such low-level primitives please disprove me. also, i'm open suggestions.

i've finished reading full chrome packaged apps api , mutexes not supported mutexes work inside process anyways it's not i'm looking begin with.

i create native app bind multiple ports on local loopback interface , proxy connections towards /dev/ttyacm* serial interface.

the other solution implementing multiple serial ports usb device in firmware multiple clients connect device without interference.

i think i'll go latter solution because don't want have daemon proxy running in background time.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -