rtklib中关于结构体中互斥量成员的理解
渣渣小白读二爷的rtklib源码,看到svr结构体里的互斥量没看懂怎么用,补了下相关知识如下:step1:先看这个搞懂什么是多线程和互斥量step2:再看源代码:#define thread_t pthread_t#define lock_t pthread_mutex_t#define initlock(f) pthread_mutex_init(f,NULL)#define lock(f) pthread_mutex_lock(f)#define unlock(f)
原创
2020-12-01 18:53:54 ·
520 阅读 ·
1 评论