re-entrant calendar cache

Yesterday I submitted the patch which makes ECalBackendCache thread safe. Initially i just thought of making it thread safe using GMutex, but this will block mutliple threads reading the Cache. Looking through devhelp, found GStaticRWLock which sufficed my need. With this multiple threads can read the cache at the same time, but if a thread wants to write something into the cache, all the other threads would be blocked. After testing the patch with various operations, attached it to bugzilla 🙂
And while testing i found the a major bug, where the groupwise calendars got deleted when a new calendar is added. I debugged it for a while and informed the issue to harish. Filed a bug for the same.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s