mutex
文章平均质量分 72
dongsongz
这个作者很懒,什么都没留下…
展开
-
linux fork子进程调用local_time导致子进程hang住的问题
近期在开发一个业务模块的功能时,增加了一个线程,结果导致业务进程刚启动就hang住,卡在local_time()的调用上。该业务模块有两个进程,进程A(在此增加了线程)通过fork启动进程B,进程A/B都会调用local_time()来打印日志。通过gdb跟踪进程B调用栈如下:(gdb) info threadId Target Id*1 Thread 0x1de08c0 (LWP 97239) ****************************...原创 2021-04-12 21:08:23 · 570 阅读 · 0 评论 -
linux C 编译错误 error: ‘EOWNERDEAD’ undeclared (first use in this function)
error: ‘EOWNERDEAD’ undeclared (first use in this function)error: ‘ENOTRECOVERABLE’ undeclared (first use in this function)在linux 使用pthread_mutex_lock()判断返回值是否为EOWNERDEAD,编译出现错误。包含头文件#原创 2017-11-18 22:41:45 · 5071 阅读 · 0 评论