pthread listen