Pad RlctAttr for 32-bit systems
This commit is contained in:
@@ -22,7 +22,9 @@ impl Default for RlctAttr {
|
||||
param: sched_param {
|
||||
// TODO
|
||||
sched_priority: 0,
|
||||
}
|
||||
},
|
||||
#[cfg(target_pointer_width = "32")]
|
||||
_pad: [0; 12],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,6 +24,8 @@ pub(crate) struct RlctAttr {
|
||||
pub stacksize: size_t,
|
||||
pub stack: size_t,
|
||||
pub param: sched_param,
|
||||
#[cfg(target_pointer_width = "32")]
|
||||
_pad: [u8; 12],
|
||||
}
|
||||
|
||||
pub const PTHREAD_BARRIER_SERIAL_THREAD: c_int = -1;
|
||||
|
||||
Reference in New Issue
Block a user