aboutsummaryrefslogtreecommitdiff
path: root/lib/std/priority_queue.zig
diff options
context:
space:
mode:
authorShawn Landden <shawn@git.icu>2020-01-19 22:08:05 +0400
committerShawn Landden <shawn@git.icu>2020-01-19 22:09:56 +0400
commite19008292222d37b3a08a4e6a9d41553ecfcfd7e (patch)
treebe696a18c9930da6492254a6bdae4d35ffc81662 /lib/std/priority_queue.zig
parentde07ca77e7310af23fa494defbf7cc235afdac68 (diff)
downloadzig-e19008292222d37b3a08a4e6a9d41553ecfcfd7e.tar.gz
zig-e19008292222d37b3a08a4e6a9d41553ecfcfd7e.zip
rb: *breaking* make API thread-safe
use @fieldParentPtr to access your context fields, which lie if you struct that contains a rb.Tree member (without a pointer). Also simplifies the init() function so rb.Tree can be initialized in a single line, without having to use "undefined".
Diffstat (limited to 'lib/std/priority_queue.zig')
0 files changed, 0 insertions, 0 deletions