Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
pthread_cleanup_pop_restore - それは何ですか?
glibc からです。また、頻繁に呼び出され、多くの CPU 時間を消費します。
プログラムは getc() 呼び出しを多く使用します。プログラムを変更することはできませんが (固定ソースのベンチマークです)、より高速に実行したいと考えています。
機能です!
pthread_cancelこれにより、クリーンアップキューからクリーンアップ関数の登録が解除されます。glibc io関数(glibcでファイルロックが有効になっている)がpthread_cancelによって中断される場合、ファイル記述子のロックを解除する唯一のチャンスがあります。このチャンスは、この関数の対応物です。
pthread_cancel