Messages in this thread | | | Date | Mon, 1 Jun 1998 01:27:52 +0200 (CEST) | From | Andrea Arcangeli <> | Subject | Re: 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
| |