[Asterisk-Dev] MUTEX definition
Jayson Vantuyl
kagato at chaosium.net
Wed Dec 15 08:56:48 MST 2004
> >Hi,
> > Does somebody can explain/tell me what is the word MUTEX referred to in
> >the * source code ?
> >Thanks,
> >Angel.
> Its short for mutually exclusive. Its a threading thing.
A mutex is a piece of code that can only be executed by one thread at a
time (or it may be the code that enforces that restriction). This is
used to protect global data that could be trashed if more than one
thread touched it at once.
--
Jayson Vantuyl
More information about the asterisk-dev
mailing list