【发布时间】:2018-12-03 06:23:14
【问题描述】:
我看到人们在使用多线程时经常使用变量名RC 或rc,例如在this Linux pthread_setname_np manual 中,有:
rc = pthread_create(&thread, NULL, threadfunc, NULL);
在这种情况下,RC 代表什么?
我怀疑它的意思是“返回码”,但我没有找到权威来源来验证。
【问题讨论】:
-
我相信你是对的。
pthread_create返回错误码,所以可能是返回码。
标签: c++ linux multithreading