multithreaded hell, help!

Brons via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jul 21 02:44:16 PDT 2016


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



More information about the Digitalmars-d-learn mailing list