Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

线程安全 #2

Open
alexliyu7352 opened this issue Dec 16, 2018 · 1 comment
Open

线程安全 #2

alexliyu7352 opened this issue Dec 16, 2018 · 1 comment

Comments

@alexliyu7352
Copy link

大神请教一下,
如果我直接调用ffmpeg.c实现cmd命令,
是否是线程不安全的?
也就是没办法同时执行两个命令?
因为ffmpeg.c里面处理转码都是全局变量.

@Alex-Cin
Copy link

Alex-Cin commented Jun 7, 2020

@alexliyu7352
算是 mark 问题吧.
我见过的demo, 都是加同步关键字的(java 的 synchronized), 就是单线程处理;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants