static ctors in shared libs
Guillaume Piolat via Digitalmars-d
digitalmars-d at puremagic.com
Sun Mar 27 04:38:15 PDT 2016
On Sunday, 27 March 2016 at 03:28:31 UTC, bitwise wrote:
>
> I was hoping to have some more people weigh in with their
> experience with plugins, whether or not they're expected to be
> multi-threaded, thread-safe, etc.. I think the current design
> is fragile, and given the limited usage of D shared libraries
> atm, I think it's a good time to come up with something a bit
> more solid/predictable.
Using OSX shared libraries with both DMD and LDC for plugins, I'm
trying to avoid all TLS, with LDC the only TLS I have is cached
Obj-C selectors (pointers) which do not have constructors IIRC.
A real concern is then that Phobos would use TLS internally.
Apart from that I don't really have an opinion.
More information about the Digitalmars-d
mailing list