[Haiku-commits] r21972 - in haiku/trunk: headers/private/interface src/kits/interface src/servers/app
Jérôme Duval
korli at users.berlios.de
Thu Aug 16 15:21:10 CEST 2007
2007/8/16, Stefano Ceccherini <stefano.ceccherini at gmail.com>:
>
> 2007/8/16, Stefano Ceccherini <stefano.ceccherini at gmail.com>:
> > 2007/8/16, Marcus Overhagen <marcusoverhagen at arcor.de >:
> >
> > > > +
> > > > +static void *
> > > > +kDummyTable[kOpsTableSize] = {
> > > > + nop,
> > >
> > > but a static table is not thread save.
> > >
> >
> > Ouch. Thats' right.
>
> Possible solutions:
> - put the table local inside PicturePlayer::Play() (better)
> - I use a lock (benaphore). It will only be used in rare cases anyway.
> - other ?
Keep it local to the function, and eventually malloc it if you think it's
too much for the stack.
Bye,
Jérôme
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.berlios.de/pipermail/haiku-commits/attachments/20070816/00ead8d5/attachment.html>
More information about the Haiku-commits
mailing list