It sounds like a personification as the thoughts are given a human trait (the ability to run).
An anthropomorphism is the attribution of human characteristics or behaviour to a god, animal, or object (i.e. more than one characteristic).
Thoughts are given only one human trait in this quote...