Skip to content

Commit

Permalink
Port C code changes to Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Bossen committed Oct 21, 2023
1 parent 37e3c0b commit b3f8ccb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/thread_task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1367,6 +1367,9 @@ pub unsafe extern "C" fn rav1d_worker_task(data: *mut c_void) -> *mut c_void {
as *mut atomic_int,
) != 0)
{
error_0 = ::core::intrinsics::atomic_load_seqcst(
&mut (*f).task_thread.error,
);
rav1d_decode_frame_exit(
&mut *f,
if error_0 == 1 {
Expand Down Expand Up @@ -1607,6 +1610,9 @@ pub unsafe extern "C" fn rav1d_worker_task(data: *mut c_void) -> *mut c_void {
as *mut atomic_int,
) != 0
{
error_0 = ::core::intrinsics::atomic_load_seqcst(
&mut (*f).task_thread.error,
);
rav1d_decode_frame_exit(
&mut *f,
if error_0 == 1 {
Expand Down Expand Up @@ -1672,6 +1678,9 @@ pub unsafe extern "C" fn rav1d_worker_task(data: *mut c_void) -> *mut c_void {
as *mut atomic_int,
) != 0)
{
error_0 = ::core::intrinsics::atomic_load_seqcst(
&mut (*f).task_thread.error,
);
rav1d_decode_frame_exit(
&mut *f,
if error_0 == 1 {
Expand Down

0 comments on commit b3f8ccb

Please sign in to comment.