Hello.
Another question about vibed.

I want to cache some info about authorized users (with singleton). Should i declare that is synchronized functions in singleton? Or vibed make this function blocking?

struct User {}

class MySingleton 
{
public:
  static MySingleton get()
  {
   synchronized 
   {
     if (instance_ is null)
     {
       instance_ = new MySingleton;
     }
   }
   return instance_;
  }
  synchronized User getUser() {...}
  synchronized void setUser( User add ) {...}
private:
  this() {}
  MySingleton instance_;
}

PS Sorry for bad english.