What is the meaning of [On a Hiding to Nothing]

Engaged in a futile task; attempting something impossible