Exemplo n.º 1
0
void setGlobalError(const char *str) {
  MeCab::Mutex *m = getGlobalMutex();
  m->lock();
  std::string *error = getStaticErrorString();
  *error = str;
  m->unlock();
}
Exemplo n.º 2
0
/** Return a pointer to a global mutex */
QMutex SIREBASE_EXPORT *globalLock()
{
    return getGlobalMutex();
}