posix timer_create() function causing memory leak on linux

后端 未结 5 566
无人共我
无人共我 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:09

    This question makes no sense without the code.

    timer_create does not make a thread by itself. Your code must be making the thread.

    Your memory leak is almost certainly caused by something wrong in your code. Since we can't see your code we can't help solve the problem.

提交回复
热议问题