]> git.draconx.ca Git - cdecl99.git/commit
libcdecl: Actually test threading support.
authorNick Bowler <nbowler@draconx.ca>
Tue, 23 Jan 2024 02:02:04 +0000 (21:02 -0500)
committerNick Bowler <nbowler@draconx.ca>
Thu, 25 Jan 2024 05:34:07 +0000 (00:34 -0500)
commitbeac10d6593fee948759c05d956b83db6803f2ec
tree726324643c4280e0db002d952614dd36607a2cce
parent0c3d696d84c1d76482d83e76e4c2b4218b028f1f
libcdecl: Actually test threading support.

Nothing actually runs libcdecl's error messaging in multiple threads to
check if it actually works.  Let's fix that with a new test application.

It does mostly work, but it turns out that we leak memory on Windows
because gnulib doesn't actually implement TLS destructors in a useful
way (on the other hand, using --enable-threads=posix should work even
on Windows with a suitable Windows pthreads library implementation).
.gitignore
Makefile.am
configure.ac
src/cdecl-internal.h
t/.gitignore
t/cdeclerr.c
t/errthread.c [new file with mode: 0644]
t/memwrap.c [new file with mode: 0644]
tests/internal.at