posix timer_create() function causing memory leak on linux

后端 未结 5 533
无人共我
无人共我 2021-01-17 06:40

I am using timer_create function for timer functionality in my application. When timeout happens, a new thread gets created. That time my application\'s memory usage is gett

5条回答
  •  北荒
    北荒 (楼主)
    2021-01-17 07:17

    Any thread stays "active" until you exit its thread function. Your leak is most probably the thread's stack - that will not go away until you invoke thread_join or some such.

提交回复
热议问题