Hello Markus, Frank, Peter.
Thank you for your answers, I'm fully satisfied:)
MG> It is, but I would not recommend to do so. Instead, I'd recommend to just port MG> the functions from pthread.h (i.e. give them an "external" declared header in MG> your unit) and handle the pthread_mutex_t just as a pointer.
It is really the way to go, I'll use it. But just I'm curious: how can I export complex datatype from C units since it is possible?
MG> However, I'm currently working on a (pthread-based) standard unit for GPC MG> multithreading, so if you aren't in a hurry, maybe I can offer you a solution MG> within a few weeks. :-)
I'll be waiting for it and I'll be beta-tester surely. Shall we know about its readiness from mailing-list?
Best regards, Igor Marnat mailto:marny@rambler.ru