From: Roger Pau Monne <roger.pau@citrix.com>
To: xen-devel@lists.xen.org
Cc: Ian Jackson <ian.jackson@citrix.com>,
Roger Pau Monne <roger.pau@citrix.com>
Subject: [PATCH] libxl: remove poller from list in libxl__poller_get
Date: Tue, 10 Apr 2012 15:41:56 +0100 [thread overview]
Message-ID: <1334068916-1486-1-git-send-email-roger.pau@citrix.com> (raw)
Remove poller from the list once it has been requested. To be merged with Ian
Jackson series.
Signed-off-by: Roger Pau Monne <roger.pau@citrix.com>
CC: Ian Jackson <ian.jackson@citrix.com>
---
tools/libxl/libxl_event.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/tools/libxl/libxl_event.c b/tools/libxl/libxl_event.c
index dcd5802..91b1bb1 100644
--- a/tools/libxl/libxl_event.c
+++ b/tools/libxl/libxl_event.c
@@ -1050,8 +1050,10 @@ libxl__poller *libxl__poller_get(libxl_ctx *ctx)
int rc;
libxl__poller *p = LIBXL_LIST_FIRST(&ctx->pollers_idle);
- if (p)
+ if (p) {
+ LIBXL_LIST_REMOVE(p, entry);
return p;
+ }
p = malloc(sizeof(*p));
if (!p) {
--
1.7.7.5 (Apple Git-26)
next reply other threads:[~2012-04-10 14:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-10 14:41 Roger Pau Monne [this message]
2012-04-24 17:40 ` [PATCH] libxl: remove poller from list in libxl__poller_get Ian Jackson
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=1334068916-1486-1-git-send-email-roger.pau@citrix.com \
--to=roger.pau@citrix.com \
--cc=ian.jackson@citrix.com \
--cc=xen-devel@lists.xen.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).