林茂枝

 

2012年12月25日

localtime多线下不安全,localtime_r线程安全

摘要: 引用:http://blog.csdn.net/maocl1983/article/details/6221810localtime的英文解析:his structure is statically allocated and shared by the functions gmtime andlocaltime. Each time either one of these functions is called the content of this structure is overwritten.也就是说每次只能同时使用localtime()函数一次,要不就会被重写!Thelocalti 阅读全文

posted @ 2012-12-25 11:09 林茂枝 阅读(4875) 评论(0) 推荐(0) 编辑

导航