These are chat archives for CoraleStudios/Colore

18th
Jan 2016
Adrian
@WolfspiritM
Jan 18 2016 20:29
If someone has some time and the knowlege, can you please explain why the thread matters for #101? In DotNet itself it usually doesn't matter which thread is accessing a resource as long as no threads are doing that at the same time (Threadsafe), so I assume it's only an issue when calling native code from two different threads? But I can't even think of an issue with two different threads in c++ as long as they aren't doing it at the same time
Adrian
@WolfspiritM
Jan 18 2016 20:38
The only thing I can think of right now is that the Chroma SDK uses a thread local storage so another thread doesn't know about variables there.
Brandon Scott
@brandonscott
Jan 18 2016 20:38
@WolfspiritM It may be a Chroma bottleneck.
We would just be guessing, but I don't think the Uninit issue is related to a multithreading thing.
It's likely a separate issue we should be raising on that.
Adrian
@WolfspiritM
Jan 18 2016 20:40
@brandonscott It just seems to work only on the thread you initalized chroma before
Just wondering as I have a similar issue in a completly different scenario (nothing related to chroma) where I call a native Library and it only works from the same thread
Brandon Scott
@brandonscott
Jan 18 2016 20:40
But as Adam noted, it occurs in the single threaded app as well
@WolfspiritM Perhaps a limitation of the Chroma subsystem
Maybe as you suggest, if one thread accesses it, then another accesses it halfway through an operation, it might corrupt the call?
Adrian
@WolfspiritM
Jan 18 2016 20:43
You don't mean the example I wrote for a single threaded application that causes colors to get stuck, too? That's unrelated I think. As the Uninit works if you just wait after changing the color. But if you uninit from another thread it never works not even when waiting.
Brandon Scott
@brandonscott
Jan 18 2016 20:43
I did mean that yes,
Adam and I were discussing in a different chat before you pinged.
Maybe a race condition, or information is only partially sent when another thread calls Chroma?
Do you have Skype?
Steam?
Would be good to have your contact
Adrian
@WolfspiritM
Jan 18 2016 20:48
I think I found you in Skype