You create and initialize a mutex in one operation through the DEFINE_MUTEX macro.
可以通过DEFINE _ mutex宏使用一个操作创建和初始化互斥锁。
Notice that when we invoke the operation, we don't bother to initialize either the owner or balance parameters.
注意,当我们调用这个操作时,无需初始化owner或balance参数。
The component doesn't re-initialize - an operation that could be expensive.
组件不用重新初始化——该操作可能会比较昂贵。
应用推荐