Might I exist again after I die? Need I be concerned about what will happen to me in this life? Memory, imagination, obsession are really all that are at play. Being aware that someone else is about to be tortured is a lot more difficult to address, and deal with...
When it's me, I will, for one thing, not really know what torture is even like, and will probably be imagining it to be a lot worse than it is, be worried about long term effects, or perhaps death. Like for spies, they don't teach you how to resist torture, they teach you how to deal with being broken. The only reason one would want to resist spilling the beans is if you are reasonably sure they're going to kill you afterwards, then you should probably keep them lips sealed for as long as you can. In both cases you're putting off the inevitable, but when they just want the info, and aren't going to kill you, and it will stop the torture, then you might as well give it up. If they're going to kill you afterwords, then you might as well tell them nothing, and make them break you.
If you're just sitting in the cell, then even if you're absolutely obsessed with the impending torture, you'll still forget about it and think about something else at least once, and then you'll notice in that moment that right now, you're fine. Maybe even feeling pretty good. Well rested, full of gruel or whatever, and everything's fine. Thinking about all of those things you won't get to do, and all of the future horrors is just what you do all of the time right now anyway. The only difference is that you imagine the physical torment of torture to be so much worse than psychological pain, but is it?