summary refs log tree commit diff
path: root/src/rt/rust_cond_lock.h
blob: 0adafd59678ec349cb4c3c851097d5c22822f4be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// -*- c++ -*-
// A lock and condition variable pair that is useable from Rust.

#pragma once

#include "sync/lock_and_signal.h"
#include "rust_globals.h"
#include "rust_task.h"

struct rust_cond_lock : public rust_cond {
    rust_cond_lock();

    lock_and_signal lock;
    rust_task *waiting;
};