#thread #rwlock #tree

synctree

Thread-safe tree data structure

4 releases

new 0.1.3 Aug 9, 2018
0.1.2 Aug 8, 2018
0.1.1 Aug 8, 2018
0.1.0 Aug 8, 2018

#8 in #rwlock

Download history 48/week @ 2018-08-10

15 downloads per month

SyncTree

A crate providing tree implementation with multithreading support.

use synctree::NodeArena;

let ref arena = NodeArena::with_capacity(12);
let root = tree!(
    arena,
    1 => [
        2,
        3 => [4, 5],
        6 => [
            7 => [8 => []],
            9 => [10 => [11]]],
        12
    ]
);

This code creates a following tree:

graph

MIT OR Apache-2.0 license

Dependencies

Reverse deps