I just managed to get the "prodcons" example from "tqt3" working on
FreeBSD 11. "prodcons" showed the same locking effect as all other TDE programs
on FreeBSD, i.e. deadlock when locking a mutex.
The patch is attached to this bug:
I do not know if this patch makes "prodcons" work on OpenBSD.
Please do not email me anything that you are not comfortable also sharing with the NSA.