Igor Marnat wrote:
synchronized, etc. And another question: is it possible to use in some way pthread datatypes in GPC Pascal programs? For example, is it possible to define variable of type pthread_mutex_t in Pascal program? I know how to export variable from C unit or library, but is it possible to export datatype or anything like that?
It is, but I would not recommend to do so. Instead, I'd recommend to just port the functions from pthread.h (i.e. give them an "external" declared header in your unit) and handle the pthread_mutex_t just as a pointer.
However, I'm currently working on a (pthread-based) standard unit for GPC multithreading, so if you aren't in a hurry, maybe I can offer you a solution within a few weeks. :-)
Yours,
Markus