pthread_t's are opaque types, don't compare them to integer values.