To maintain one's emotional control and continue functioning normally despite being under extreme distress.
"He barely held himself together during the meeting, knowing he'd just received terrible news."
I held myself together by reminding myself why I was there.
— Widely attested phrasing in memoir writing; comparable expressions in Cheryl Strayed, Wild (2012)