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