Do you *have* to write to the same file? I recently had to deal with a similar issue, but I decided to have each thread/process write files that matched a regex, and a coordinating process looking for files that matched the regex to read and consume.
So I wrote a file like file-<guid>.txt for each thread/process and the parent used a FileWatcher to find new files that matched the regex. Was a bit dirty, but it worked, and I think it was relatively platform agnostic... On Wed, Jul 2, 2014 at 3:39 PM, Edward Ned Harvey (mono) < [email protected]> wrote: > > From: Brandon Perry [mailto:[email protected]] > > > > You could use dbus if you don't care about windows. > > I care about windows, linux, and mac. I gather, my options are: > WCF (poorly supported in mono, right?), > Remoting (which is supposed to be deprecated since WCF, right?), > DBus (???) > Socket (cough cough) > Mutex (doesn't work on mac) > Named pipes (seems not available in mono, right?) > > Maybe looping and polling the file isn't such a terrible solution after > all..... > -- http://volatile-minds.blogspot.com -- blog http://www.volatileminds.net -- website
_______________________________________________ Mono-devel-list mailing list [email protected] http://lists.ximian.com/mailman/listinfo/mono-devel-list
