Use the original POSIX threads types: - pthread_mutex_t - pthread_attr_t - ... Note that these are POSIX threads, where the types are defined in . This header file is included in the generated C sources by default. Therefore there is no need to include an external header file on most modern Linux systems. Also note that most BaCon statements are not thread-safe and therefore need a mutex.