Add thread_equal function to allow for platform defined function to