Re: process synchronization

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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]