Am Mittwoch, den 29.08.2007, 07:14 +0930 schrieb Dan Shearer: 
> libmapi has global context by design.
> 
> Are there situations, particularly in GUI groupware clients, where the
> developer will want to open multiple sessions?
It's much easier to support a global context from the start than to add
it later at the moment it becomes needed.

There are several advantages to using global contexts:
 * makes it easier to be thread-safe
 * makes it easier to be recursive-safe
 * easier to do testing as resetting global state is trivial (just
create a new context) 
 * in case of multiple users of the library linked into one app they
don't collide

Cheers,

Jelmer
-- 
Jelmer Vernooij <[EMAIL PROTECTED]> - http://samba.org/~jelmer/
Jabber: [EMAIL PROTECTED]

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel

Reply via email to