platform specific api usage
Hi, Im trying to make a application to have global system hotkeys, and key emulation. Ive found: https://github.com/dlang/druntime/tree/master/src/core/sys/ https://github.com/madadam/X11.d/tree/master/X11 https://github.com/smjgordon/bindings It looks like druntime is based off smjgordon. But i cant find any documentation on using any of them. Id like it to work on windows and linux. Any ideas on where to get started on this?
Re: multithreaded hell, help!
On Thursday, 21 July 2016 at 09:47:09 UTC, rikki cattermole wrote: On 21/07/2016 9:44 PM, Brons wrote: Im trying to access data in a global between threads. So ive set my global to shared, however the object trying to access it needs to also then be shared, but it cant be because its part of a library... Is there any simple way to transfer data from one thread to another? 1. My situation is im reading from a serial port in a thread. Which writes to my global. 2. In a draw thread i need to get that data and draw my output. Cheers __gshared or cast away shared. __gshared has done the trick! Thanks :)
multithreaded hell, help!
Im trying to access data in a global between threads. So ive set my global to shared, however the object trying to access it needs to also then be shared, but it cant be because its part of a library... Is there any simple way to transfer data from one thread to another? 1. My situation is im reading from a serial port in a thread. Which writes to my global. 2. In a draw thread i need to get that data and draw my output. Cheers