All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Schwartz <davids@webmaster.com>
To: <marcelo@conectiva.com.br>, Hugh Dickins <hugh@veritas.com>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] shm_destroy lock hang
Date: Thu, 27 Jun 2002 13:24:14 -0700	[thread overview]
Message-ID: <20020627202415.AAA1385@shell.webmaster.com@whenever> (raw)
In-Reply-To: <Pine.LNX.4.44.0206271558330.11719-100000@freak.distro.conectiva>


>Just please avoid doing that locking nastyness:
>
>function() {
>unlock();
>}
>
>
>lock();
>if (something)
>    function();
>else
>    unlock();

	What do you do in cases where 'function' looks like this:

function() {
 something();
 unlock();
 something_else();
}

	DS



  reply	other threads:[~2002-06-27 20:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-27 19:17 [PATCH] shm_destroy lock hang Hugh Dickins
2002-06-27 19:01 ` Marcelo Tosatti
2002-06-27 20:24   ` David Schwartz [this message]
2002-06-27 20:11     ` Marcelo Tosatti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020627202415.AAA1385@shell.webmaster.com@whenever \
    --to=davids@webmaster.com \
    --cc=hugh@veritas.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.