File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -858,6 +858,11 @@ rust_task_allow_kill() {
858
858
task->allow_kill ();
859
859
}
860
860
861
+ extern " C" void
862
+ rust_task_kill_other (rust_task *task) { /* Used for linked failure */
863
+ task->kill ();
864
+ }
865
+
861
866
extern " C" rust_cond_lock*
862
867
rust_create_cond_lock () {
863
868
return new rust_cond_lock ();
@@ -884,6 +889,7 @@ rust_unlock_cond_lock(rust_cond_lock *lock) {
884
889
885
890
extern " C" void
886
891
rust_wait_cond_lock (rust_cond_lock *lock) {
892
+ assert (false && " condition->wait() is totally broken! Don't use it!" );
887
893
rust_task *task = rust_get_current_task ();
888
894
lock->lock .must_have_lock ();
889
895
assert (NULL == lock->waiting );
@@ -897,6 +903,7 @@ rust_wait_cond_lock(rust_cond_lock *lock) {
897
903
898
904
extern " C" bool
899
905
rust_signal_cond_lock (rust_cond_lock *lock) {
906
+ assert (false && " condition->signal() is totally broken! Don't use it!" );
900
907
lock->lock .must_have_lock ();
901
908
if (NULL == lock->waiting ) {
902
909
return false ;
Original file line number Diff line number Diff line change @@ -180,6 +180,7 @@ rust_port_drop
180
180
rust_port_task
181
181
rust_task_inhibit_kill
182
182
rust_task_allow_kill
183
+ rust_task_kill_other
183
184
rust_create_cond_lock
184
185
rust_destroy_cond_lock
185
186
rust_lock_cond_lock
You can’t perform that action at this time.
0 commit comments