Hi all,

One word of warning:
Some time ago it turned out that a simple code line like this
    vos::OGuard aGuard( GetMyMutex() );
is NOT thread-safe on all platforms!

To get a threadsafe Mutex (which you are need for proofreaders!) do the
following:
  #include <rtl/instance.hxx>
  //!! multi-thread safe mutex for all platforms !!
  struct MySafeMutex : public rtl::Static< osl::Mutex, MySafeMutex >
  {
  };

and then, later in the code, use it like this:
  osl::MutexGuard  aGuard( MySafeMutex ::get() );


Regards,
Thomas



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lingucomponent.openoffice.org
For additional commands, e-mail: dev-h...@lingucomponent.openoffice.org

Reply via email to