pub unsafe extern "C" fn CPLGetPID() -> GIntBig
Contrary to what its name suggests, CPLGetPID() actually returns the thread id