Delete macro "CAST_PTHREAD_TO_INT"
I recommend to delete the macro "CAST_PTHREAD_TO_INT" because thread identifiers like "pthread_t" can not be converted to an integer in a portable way. There is no conversion function in the public APIs available for such an opaque data type.