mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 09:22:55 +00:00
WIP
This commit is contained in:
@@ -6,7 +6,9 @@ pub fn run_client(os: NodeOs, data: &[u32], dst: NodeId) {
|
||||
|
||||
let sock = os.open_tcp(dst);
|
||||
for num in data {
|
||||
println!("start send data from client");
|
||||
sock.send(AnyMessage::Just32(num.clone()));
|
||||
println!("finish send data from client");
|
||||
}
|
||||
|
||||
println!("sent all data and finished client");
|
||||
|
||||
@@ -55,6 +55,7 @@ impl Condvar {
|
||||
if let Some(waiter) = state.waiters.pop() {
|
||||
waiter.wake();
|
||||
}
|
||||
drop(state);
|
||||
|
||||
// yield the current thread to the scheduler
|
||||
Park::yield_thread();
|
||||
|
||||
Reference in New Issue
Block a user