L3nn0x
L3nn0x
Yes in your case it's thread safe.
Just tried it on Windows and it works. The only thing is that it changes the resolution of the screen as well so that might cause a problem for you
I had a look at your code, and everything is fine. I also downloaded and compiled/ran your whole github repo (the one you linked) and alt+enter works fine. Although the...
I tried moving around and then pressing alt+enter and it's fine as well.
I've been playing around with rltk and it's a pretty good library as well, I recommend it
to convert from a `c_char` array to a `&str`, we should be able to use this: https://doc.rust-lang.org/std/ffi/struct.CStr.html I'm not sure I'll have time to implement it, but I'll see what...
Wrapping the struct in both an Arc and a Mutex only guarantees Send if the underlying struct is Send. Unfortunately raw pointers aren't. I know that libtcod isn't thread safe,...
I completely agree with you, it's not the best solution. I've been looking a little into it and I think the best solution would be to store the raw pointer...
I'm pretty sure this is because Box frees the memory pointed to when dropped. That's why I was looking into `Box::into_raw()` as well, to remove the pointer from the Box...
@Darksecond I don't have enough time to poke around the library lately, but if you make a list/a PR of useful structs to be marked as Send, I can have...