On Tue, Jun 25, 2013 at 5:10 AM, Navaneeth KN <[email protected]> wrote: > Hello, > > I am planning to embed libuv in my program and do the following. > > * Main program initializes a `uv_pipe`. > * Main program starts a thread which will write results computed by other > threads to a SQLite database. Only this thread does the writes. This thread > reads data from the pipe. > * Main program reads each line from a text file and uses `uv_queue_work` to > process the data. There could be a lot of data to process and mostly more > than 50,000 items gets queued to `uv_queue_work`. After processing, > `uv_queue_work` callback writes the result to the pipe. > * Main program start the even loop and waits for it to end. It also waits > for the writer thread to finish. > > I am not sure the above is safe to do in `libuv`. Is it the correct > approach? Or is there an alternate way to approach this problem? > > > Cheers, > Navaneeth
Libuv has its own mailing list: http://groups.google.com/group/libuv The answer to your question is a complicated 'maybe'. It's probably better to take it off this list. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
