Home » Community » U++ community news and announcements » SpinLock
|
Re: SpinLock [message #44459 is a reply to message #44226] |
Fri, 13 March 2015 22:12 |
aftershock
Messages: 143 Registered: May 2008
|
Experienced Member |
|
|
Hi,
How Can I use spinlock?
bool m::add()
{
int free_index;
{
SpinLock _;
}
Is this correct? Should spinlock be static SpinLock _;?
or
static SpinLock _;
{
SpinLock::Lock l(_);
}
A.
[Updated on: Fri, 13 March 2015 22:30] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 13:51:28 CEST 2024
Total time taken to generate the page: 0.03634 seconds
|