In general relativity , an event horizon is a part of a black hole .
The most common case of an event horizon is that surrounding a black hole .