[Nagios-devel] Multithreaded Macro Support Wrapper (failure)

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] Multithreaded Macro Support Wrapper (failure)

Post by Guest »

I am sad to report that my attempt at multi-threading the current macro sys=
tem did not succeed.
However valuable lessons were learned in the process.

My previous approach of creating a couple of functions and placng mutexs on=
them was not sufficient.
Each thread is going to end up needing it's own isolated macro system for t=
he current system to work.

My new approach will be similar in some respects except that there will be =
thread specific versions of each macro, something along the lines of...

macro_x[tid][MACRO_NAME]

It's not a permanent solution, but I believe it will work and it's clean wi=
thout requiring another refactor.
Furthermore, it should port to the 3x branch without much trouble at all, j=
ust a simple search and replace.

I'll let you know how it works out.

Sincerely,
Steve


NOTICE: This email message is for the sole use of the intended recipient(s=
) and may contain confidential and privileged information. Any unauthorized=
review, use, disclosure or distribution is prohibited. If you are not the =
intended recipient, please contact the sender by reply email and destroy al=
l copies of the original message.







This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked