summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 96c2e44)
raw | patch | inline | side by side (parent: 96c2e44)
author | Sebastian Harl <sh@tokkee.org> | |
Fri, 3 Jan 2014 12:23:51 +0000 (13:23 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Fri, 3 Jan 2014 12:24:25 +0000 (13:24 +0100) |
src/utils/llist.c | patch | blob | history |
diff --git a/src/utils/llist.c b/src/utils/llist.c
index c56cdbda098b581c9d957aeebb7db9c1725ffdf0..401a4ba5d92280901c5782e48cda24443842cd98 100644 (file)
--- a/src/utils/llist.c
+++ b/src/utils/llist.c
pthread_rwlock_rdlock(&iter->list->lock);
+ /* XXX: increment ref-cnt for this object?
+ * also: when letting an element take ownership of next and prev
+ * elements, this might be a fairly cheap way to implement a weak
+ * type of snapshotting */
+
obj = iter->elem->obj;
iter->elem = iter->elem->next;