Rest of files for poll thread wrapper code