Re: process synchronization
- From: "Hubert Sokolowski" <h sokolowski wsisiz edu pl>
- To: "Muthu" <dearestchum yahoo co in>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: process synchronization
- Date: Mon, 6 Dec 2004 14:27:03 +0100 (CET)
I suggest you make a separate thread that does all the
R/W I/O process with g_thread_init() &
g_thread_create(). Then well you must have a scenario
like this
dd if=hello | gzip
And if you are using the same thread to write into
gzip's stdin, and then reading out of stdout, then I
guess do it in two different threads. Might work.
my problem was that I didn't set non-blocking property to gzip's stdin
and gzip's stdout. Now it works fine, I get almost the same results as when
doing it from a shell by
dd if=file | gzip -c > file.gz
greetings
hs
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]