What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Q. for Patchou: thread-safety in plugins

Q. for Patchou: thread-safety in plugins
Author: Message:
PsychoMark
Full Member
***

Avatar

Posts: 151
41 / – / –
Joined: Apr 2002
O.P. Q. for Patchou: thread-safety in plugins
This is a question for Patchou (or anyone who has a good knowledge of the internal workings of Plus)... in what way are plugins called? Specifically, do I need to take synchronization into account?

The reason I ask is because I need a global variable in my plugin. My plugin is written in Delphi, thus follows the C rules. I can declare a variable which'll work throughout the DLL, but if the plugins are called in a seperate thread it could in very rare situations lead to a horrible crash... in this case I'd either use a memory mapped file or protect the data using a critical section...


Information on which functions are called in which contexts would be nice. For example; between two calls, are we still in the same thread or is a new one created?


Thanks in advance!
10-02-2003 11:38 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Q. for Patchou: thread-safety in plugins - by PsychoMark on 10-02-2003 at 11:38 AM
RE: Q. for Patchou: thread-safety in plugins - by Whacko on 10-02-2003 at 02:18 PM
RE: Q. for Patchou: thread-safety in plugins - by Whacko on 10-02-2003 at 02:19 PM
RE: Q. for Patchou: thread-safety in plugins - by PsychoMark on 10-02-2003 at 02:28 PM
RE: Q. for Patchou: thread-safety in plugins - by lopardo on 12-06-2003 at 06:47 AM
RE: Q. for Patchou: thread-safety in plugins - by PsychoMark on 12-06-2003 at 01:48 PM
RE: Q. for Patchou: thread-safety in plugins - by lopardo on 12-06-2003 at 05:05 PM
RE: Q. for Patchou: thread-safety in plugins - by lopardo on 12-07-2003 at 12:21 AM
RE: Q. for Patchou: thread-safety in plugins - by PsychoMark on 12-07-2003 at 09:45 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On