lkml.org 
[lkml]   [1998]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: test_and_set_bit() not atomic forever? [cli/sti in char/vt.c [patch]]
On Sun, 31 May 1998, Mike Ford Ditto wrote:

>I think this is an undesirable philosophy. Atomic and non-atomic
>operations should both be available, and the calling code should use the

test_and_set_bit() not atomic is something like:

unsigned int foo;

if (!(foo & 0x1))
{
foo |= 0x1;
critical section here;
foo &= ~0x1;
}

Andrea[s] Arcangeli


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.081 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site