spinlock
美
英 
- 網(wǎng)絡(luò)自旋鎖;結(jié)構(gòu)鎖;自旋塊
例句
Finally, if your kernel thread shares data with a bottom half, then you can use another variant of the spinlock.
最后,如果內(nèi)核線程通過bottomhalf方式共享數(shù)據(jù),那么可以使用自旋鎖的另一個變體。
First you create a new spinlock through a simple declaration.
首先通過一個簡單的聲明創(chuàng)建一個新的自旋鎖。
In this example, an array is created of spinlock_t with a size of LOCK_COUNT.
在這個示例中,spinlock_t創(chuàng)建一個大小為LOCK_COUNT的數(shù)組。
This version of the spinlock disables soft interrupts on the local CPU.
這種自旋鎖禁用了本地CPU上的軟中斷。
The spin_unlock_irqrestore function releases the spinlock and restores the interrupts (via the flags argument).
spin_unlock_irqrestore函數(shù)釋放自旋鎖,并且(通過flags參數(shù))恢復(fù)中斷。
The task in the session is waiting for a spinlock to become free.
會話中的任務(wù)正在等待調(diào)節(jié)鎖變?yōu)?/c>可用。
Make sure this copying happens inside the critical section by holding a spinlock.
確保這個拷貝是在一個具有自旋鎖的臨界區(qū)中發(fā)生的。
The spin_lock_irqsave function acquires the spinlock and disables interrupts on the local processor (in the SMP case).
spin_lock_irqsave函數(shù)需要自旋鎖,并且在本地處理器(在SMP情形中)上禁用中斷。
The spinlock is needed here, because the kernel thread will be running independently and will access the global structure.
此處的確需要自旋鎖,因為內(nèi)核線程是獨立運行的,而且要訪問這個全局結(jié)構(gòu)。
Yes folks, there is a pseudo-spin lock and call to Threading. Sleep in there.
是的,各位讀者請注意,這里存在一個偽自循環(huán)鎖(pseudo-spinlock),并調(diào)用了Threading.Sleep。
I've used a combination of mutexes and spinlocks to keep things synchronized.
我使用互斥體和自旋鎖(spinlock)的組合方案來保證同步。
Now that you have a spinlock defined, there are a number of locking variants that you can use.
定義了自旋鎖之后,就可以使用大量的鎖定變量了。
There are also four ways to release a spinlock; the one you use must correspond to the function you used to take the lock
以下四種方法可以用來釋放一個自旋鎖;你必須要使用與你的鎖定函數(shù)相對應(yīng)的一個
There are actually four functions that can lock a spinlock
下面是四個可以鎖定一個自旋鎖的函數(shù)