Re: Proper way to provide gtk+ app with asynchronous data?
- From: Christer Palm <palm nogui se>
- To: John Cupitt <jcupitt gmail com>
- Cc: gtk-list gnome org
- Subject: Re: Proper way to provide gtk+ app with asynchronous data?
- Date: Fri, 09 Jul 2004 14:49:29 +0200
John Cupitt wrote:
Very simple and easy to program. I'm assuming writing 4 bytes to a
pipe is atomic, I guess. I've not had problems (even on SMP machines),
but it would be easy to add a global mutex for the pipe writers.
Oh, by the way. On a POSIX conformant system, a write to a pipe _is_
guaranteed to be atomic as long as it's no larger than PIPE_BUF (from
limits.h) bytes. So 4 bytes should be safe.
--
Christer Palm
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]