Search
22:13:16
Shinmera
besides it's not like the read/write functions do anything other than just reading and writing struct fields
22:18:57
selwyn
but then why does it bug out :(
22:19:29
Shinmera
that's the mystery isn't it.
22:19:51
Shinmera
try replacing the atomic calls by just straight writes
22:20:08
Shinmera
the windows backend doesn't do any cross-thread sync anyway so it should work just the same.
22:21:21
Shinmera
another thing to see is look at the assembly generated for the function to see what it actually translates this stuff to
22:25:39
selwyn
i wonder why it didn't inline
22:27:14
Shinmera
who knows. maybe needs an __attribute__(inline) or __atribute_(always_inline) or something.
22:32:55
Shinmera
selwyn: so if I just gcc -S buffer.c, it does inline it.
22:33:11
Shinmera
selwyn: maybe it's compiling the library without optimisations for you?
22:33:23
selwyn
it was happening before i started recompiling though
22:33:35
selwyn
with the libraries that are shipped with cl-mixed
22:33:43
selwyn
anyway i don't think its suspicious