Revert "replace try_lock() with lock_blocking() across UI thread"
This reverts commit 4225294d16.
This commit is contained in:
parent
4225294d16
commit
09896cd38b
28 changed files with 67 additions and 4199 deletions
|
|
@ -104,6 +104,6 @@ async fn run(
|
|||
prior_context: render_prior_context(entries, entry_idx, 2),
|
||||
timestamp_ns: node_timestamp_ns(node),
|
||||
});
|
||||
{ let st = agent.state.lock_blocking(); st.changed.notify_one(); }
|
||||
if let Ok(st) = agent.state.try_lock() { st.changed.notify_one(); }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -736,7 +736,7 @@ async fn run_finetune(
|
|||
gen_alternates, &activity,
|
||||
move |c| {
|
||||
shared.lock().unwrap().finetune_candidates.push(c);
|
||||
{ let st = agent.state.lock_blocking(); st.changed.notify_one(); }
|
||||
if let Ok(st) = agent.state.try_lock() { st.changed.notify_one(); }
|
||||
},
|
||||
).await {
|
||||
Ok((above_threshold, max_div)) => FinetuneScoringStats {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue