INFO: Resource DLL Entry Points Are Called by Arbitrary Threads

Last reviewed: March 9, 1998
Article ID: Q182195
The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK)
  • Microsoft Windows NT Server Enterprise Edition version 4.0

SUMMARY

You cannot be certain about which specific threads will call the entry points in a resource type DLL. In other words, the thread that calls Online() may not be the same thread that called Open(). As a result, you should not use per-thread data or initialization.

MORE INFORMATION

Most of the entry points in the resource type DLL are called indirectly by the cluster server service. To isolate the cluster server from the code, resource monitors load and call resource type DLLs. The cluster server directs the actions of the resource monitors through RPC calls.

A given resource monitor may manage several resource DLLs. A pool of threads in the resource monitor handles the requests from the cluster server. Since any one of the threads in the pool could be used to handle the cluster server request, you cannot be certain about which specific thread will make the call to a resource DLL.

Keywords          : kbcluster
Version           : WINNT:4.0
Platform          : winnt
Issue type        : kbinfo


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 9, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.