rcuja-range: get values
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 11 Jun 2013 12:53:02 +0000 (08:53 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 11 Jun 2013 12:53:02 +0000 (08:53 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
rcuja/rcuja-range.c
urcu/rcuja-range.h

index 72a7609e11badfca7b7313fca71617497d3f3a17..7e4585ef942d76f1811f3c958fff3138ac120ca3 100644 (file)
@@ -217,6 +217,14 @@ void cds_ja_range_unlock(struct cds_ja_range *range)
        pthread_mutex_unlock(&range->lock);
 }
 
+void cds_ja_range_get_values(const struct cds_ja_range *range,
+       uint64_t *start, uint64_t *end, void **priv)
+{
+       *start = range->start;
+       *end = range->end;
+       *priv = range->priv;
+}
+
 static
 struct cds_ja_range *range_create(
                uint64_t start,         /* inclusive */
index 05ba08aa17264adf5f0960b97db427022e074b1a..63035a1660888aa5f9b20548046571dcb54ad193 100644 (file)
@@ -45,6 +45,9 @@ int cds_ja_range_add(struct cds_ja *ja,
 
 int cds_ja_range_del(struct cds_ja *ja, struct cds_ja_range *range);
 
+void cds_ja_range_get_values(const struct cds_ja_range *range,
+       uint64_t *start, uint64_t *end, void **priv);
+
 struct cds_ja *_cds_ja_range_new(unsigned int key_bits,
                const struct rcu_flavor_struct *flavor);
 
This page took 0.025906 seconds and 4 git commands to generate.