mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* get into sleep and release the lock in an atomic operation
@ 2003-09-30  0:17 Kallol Biswas
  0 siblings, 0 replies; only message in thread
From: Kallol Biswas @ 2003-09-30  0:17 UTC (permalink / raw)
  To: linux-kernel

Consider the few lines of code:

spinlock()

if (num == 0) {
  sleep and release the spinlock in an atomic operation.
}

In the OS like HP-UX there was a sleep lock concept, the
code would look like:

get_sleeplock()

if (num== 0) {
   sleep and release the lock
}

Is there any primitive that implements this kind of spinlock and
sleep in linux?  I could not find it.
I know it can be implemented.


Kallol


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-09-30  0:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-30  0:17 get into sleep and release the lock in an atomic operation Kallol Biswas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®