2013-05-05から1日間の記事一覧
stdinかなんかをnonblockingでやるのではなく、別threadでタスクを実行しておいて、master threadでそいつを適当なタイミングで止めてやるという話。 参考: pthreadのキャンセル pthread_cancelというのがあり、cancel pointをワーカスレッド側に用意( pthre…
stdinかなんかをnonblockingでやるのではなく、別threadでタスクを実行しておいて、master threadでそいつを適当なタイミングで止めてやるという話。 参考: pthreadのキャンセル pthread_cancelというのがあり、cancel pointをワーカスレッド側に用意( pthre…