Druntime without pthreads?

Severin Teona teona.severin9 at gmail.com
Tue Oct 20 16:58:12 UTC 2020


Hi guys.

I have a curiosity, regarding [1] - I had encountered some 
"undefined reference" errors when trying to link the druntime 
(compiled for an embedded architecture) without some 
implementation of the POSIX thread calls (and other stuff too).

My curiosity is what would change if I removed from the druntime 
everything that has to do with mutexes or threads. Would it be 
possible for the druntime to run and work properly on a 
microcontroller - where those concepts are not necessary? Could I 
just remove everything about synchronisation from the druntime, 
and classes or Garbage Collector to still work properly?

[1]: 
https://forum.dlang.org/post/erwfgtigvcciohllvaos@forum.dlang.org


More information about the Digitalmars-d-learn mailing list