trunk-tracking: use PthreadSharedMem