有关librt.so.1的timer_helper_thread()的一些信息 [英] some information on timer_helper_thread() of librt.so.1

查看:257
本文介绍了有关librt.so.1的timer_helper_thread()的一些信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


任何人都可以在librt.so.1.的timer_helper_thread()函数上提供一些信息吗?
我在我的应用程序中使用posix timer_create()函数来实现定时器功能,并且正在使用SIEV_THREAD进行通知.当发生超时时,我可以在gdb中看到正在创建两个线程.一个是我指定了启动函数的线程,另一个是其启动函数是librt.so.1的timer_help_therad()的线程.在这两个timer_helper_thread()中,即使在我的线程退出后也不会退出.有人可以告诉我timer_helper_thread()何时退出并提供一些信息吗?


Can anybody give some information on timer_helper_thread() function of librt.so.1.
I am using posix timer_create() function in my application for timer functionality and i am using SIEV_THREAD for notifiction. When timeout happens, i could see in gdb that two thread are getting created. One is the thread whose start function i have specified and another is the thread whose start function is timer_help_therad() of librt.so.1. Among these two timer_helper_thread() is not exiting even after my thread is exiting. Can anbody tell me when will timer_helper_thread() exit and give some informatin on it?

推荐答案

@jander:您的评论很有趣,该计时器帮助器线程从您调用timer_create()的第一时间开始一直持续到程序结束." 每当计时器超时时,都会创建线程.这和您提到的timer_helper_thread()一样吗? 我在类似的帖子中观察到仅为timer_create()创建的单独线程.这将是timer_helper_thread()吗? 参考:调用timer_create()的新线程

@jander: Your comment is interesting here "This timer helper thread lasts from the fist time you call timer_create() until your program ends." There are threads created on everytime a timer is timeout. Is this same as the timer_helper_thread() you mention? I have a similar post where I observe a separate thread created only for timer_create(). Would this be the timer_helper_thread()? Ref: New thread on invocation of timer_create()

这篇关于有关librt.so.1的timer_helper_thread()的一些信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆