kaist-cp/cs431

[Question] Why do we clone a thread instead of using next_ref.thread.unpark?

SirCollypso opened this issue · 1 comments

Screenshot_20240412_224343

Why do we need to clone a thread instead of using next_ref.thread.unpark()? I understand the ordering issue and that we need to store before unparking. But why cannot we use next_ref.thread after store?

Duplicate of #176