Chromium Embedded如何检测我们是否作为子流程运行
How in Chromium Embedded detect if we are running as subprocess?
当Chromium Embedded Framework 3子流程使用单个可执行文件时,程序如何检测它是作为主可执行文件还是作为子流程运行?
我发现主进程使用命令行开关--type=zygote
运行,但子进程不是。
(用伪语言):总是正确的吗
if (command line switch --type=zygote not found) {
we are in subprocess
}
是的,我相信是的,我们成功地使用了这种技术。
if ( wcsstr(lpCmdLine, L"type") == NULL ){
// we have no subprocess type so we are the main process
}
相关文章:
- 为什么std::async使用同一个线程运行函数
- 如何在 qt 中从另一个线程运行 qt并发时关闭程序
- 如何使线程运行现有类的函数?C++
- 使用 4 个和 8 个线程运行时执行的时间相等
- 在我调用join()之前,std ::线程运行
- winsock连接调用崩溃如果多个线程运行,则在一个线程中正常工作
- 无法在线程运行方法中运行CryptoPP FileSink的情况下终止Qt线程
- 如何确保这部分代码仅由一个线程运行(在 openmp 中)
- 线程连接在另一个线程运行时会导致分段错误
- 我的线程工作不好,它给出了所有结果,最后没有一个接一个,GUI 在线程运行期间挂起?
- 动态提升线程运行存储在具有共享指针的向量中的对象的方法
- 如何启动一个 boost::线程运行一个成员函数
- 如果由另一个 OpenMP 程序调用,则外部调用的 OpenMP 程序仅使用一个线程运行
- 线程运行时间最少
- 计算线程运行的次数
- 有可能在线程运行时从它获取数据吗?C++
- MySQL C API:从不同线程运行查询时出现分段错误
- 尝试使用线程运行CamShift
- 使用两个线程运行和中断一个无限循环
- 是c/c++中线程运行速度比串行线程快的程序