Fixed thread functions ambiguity

Fixed build errors related to thread functions ambiguity.