Skip to content

Instantly share code, notes, and snippets.

@benjamn
Created December 1, 2008 23:30
Show Gist options
  • Save benjamn/30895 to your computer and use it in GitHub Desktop.
Save benjamn/30895 to your computer and use it in GitHub Desktop.
undefined
template <typename M>
M* Create() {
ParserQueueMsg* msg = new M;
nsAutoLock synchronized(mLock);
Push(msg);
return static_cast<M*>(msg);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment