XPCOM Thread Synchronization 编辑
XPCOM thread synchronization primitives have the same semantics as those in NSPR, and each method of these synchronization objects (e.g. Mutex::Lock()
) has a matching function in NSPR (PR_Lock()
). This is no accident, as mozilla:: primitives are merely bare-minimum wrappers around NSPR's.
This article covers the API of Mozilla synchronization only. For a higher-level introduction to thread synchronization, see Introduction_to_NSPR.
Quick reference: Difference between nsAutoLock API and new API
Old constructionNote: This is deprecated code that is shown only to compare with approved code.
| New Construction
|
Old UsageNote: This is deprecated code that is shown only to compare with approved code.
| New Usage
|
Mozilla Synchronization API reference
The mozilla::
namespace exports the following synchronization primitives.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论