Mjpeg-streamer代码分析.doc

Mjpeg-streamer代码分析

代码分析 Mjpeg-streamer程序流程图: main() 1参数分析 2初始化全局变量 global.stop = 0; global.buf = NULL; global.size = 0; global.in.plugin = NULL; /* this mutex and the conditional variable are used to synchronize access to the global picture buffer */ 3初始化互斥体和条件变量,来同步对global buffer的访问 if( pthread_mutex_init(global.db, NULL) != 0 ) { LOG(could not initialize mutex variable\n); closelog(); exit(EXIT_FAILURE); } if( pthread_cond_init(global.db_update, NULL) != 0 ) { LOG(could not initialize condition variable\n); closelog(); exit(EXIT_FAILURE); } 忽略管道断裂信号 接受 ct

文档评论(0)

1亿VIP精品文档

相关文档