ok How break uv_work_t request? Or this impossible? 2012/7/27 Ben Noordhuis <[email protected]>
> On Thu, Jul 26, 2012 at 5:38 PM, Denis Davydov <[email protected]> wrote: > > sorry for my english > > > > I have blocking function from other C library and i use she in > > uv_queue_work. Example source code: > > http://pastebin.com/3cnyWLZb > > My problem - breaking work function in any time. I try use uv_close and > give > > segfault. How right to do this? > > Example user code: > > > > var test = require('my').test; > > > > test.async(); > > > > setTimeout(function () { > > log('other thread working'); > > }, 1000); > > > > setTimeout(function () { > > test.async_close(); > > }, 2000); > > > > Terminal output: > > $ node ./ttt.js > > w_begin > > other thread working > > close_begin > > segmentation fault > > > > thanks > > Don't call uv_close(), it's only for handles (uv_tcp_t, uv_timer_t, > etc.). A uv_work_t is a request type, not a handle. > > -- > 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 > -- Контакты: http://tuxnsk.ru/ -- 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
