From: Merx, T. <tho...@ha...> - 2011-10-21 10:36:33
|
Hi, I solved it in not using FUSE, but using sockets instead. Regards Thomas >-----Ursprüngliche Nachricht----- >Von: Stef Bon [mailto:st...@gm...] >Gesendet: Freitag, 21. Oktober 2011 12:32 >An: Merx, Thomas >Cc: fuse-devel (fus...@li...) >Betreff: Re: [fuse-devel] Writing to a file while a read is blocked on >same file? > >Hi, > >have you got an answer yet? > >I've solved the same problem (read-writer ) using threads, mutexes, >condition variables etcetera. > >You can find various documentation on the Internet about howto do this. > >Stef > >2011/9/23 Merx, Thomas <tho...@ha...>: >> Hi everybody, >> >> I am new to Fuse and have a question regarding parallel read and write >accesses to the same file. I want to write some kind of "driver" in user >space which provides nodes from which I can read data if available and >write some data to it. If no data is available the read shall block. In >this case I still want to be able to write data to the same node. When I >do this with Fuse and I am blocked waiting for a semaphore in the read >function, I am not able to write any data to this node. I assume that >there is only one thread for the read and write functions, am I right? >Is there another way to do what I want? >> >> Thanks in advance, >> Thomas Merx >> ---------------------------------------------------------------------- >-------- >> All of the data generated in your IT infrastructure is seriously >valuable. >> Why? It contains a definitive record of application performance, >security >> threats, fraudulent activity, and more. Splunk takes this data and >makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2dcopy2 >> _______________________________________________ >> fuse-devel mailing list >> fus...@li... >> https://lists.sourceforge.net/lists/listinfo/fuse-devel >> |