We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 135625d commit 8e34f64Copy full SHA for 8e34f64
src/librustrt/mutex.rs
@@ -298,10 +298,12 @@ mod imp {
298
static _PTHREAD_MUTEX_SIG_init: libc::c_long = 0x32AAABA7;
299
static _PTHREAD_COND_SIG_init: libc::c_long = 0x3CB0B1BB;
300
301
+ #[repr(C)]
302
pub struct pthread_mutex_t {
303
__sig: libc::c_long,
304
__opaque: [u8, ..__PTHREAD_MUTEX_SIZE__],
305
}
306
307
pub struct pthread_cond_t {
308
309
__opaque: [u8, ..__PTHREAD_COND_SIZE__],
@@ -363,7 +365,9 @@ mod imp {
363
365
mod os {
364
366
use libc;
367
368
369
pub struct pthread_mutex_t { value: libc::c_int }
370
371
pub struct pthread_cond_t { value: libc::c_int }
372
373
pub static PTHREAD_MUTEX_INITIALIZER: pthread_mutex_t = pthread_mutex_t {
0 commit comments