Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Why are MQCNO_HANDLE_SHARE_... constants excluded? #20

Open
d11wtq opened this issue Apr 6, 2017 · 0 comments
Open

Why are MQCNO_HANDLE_SHARE_... constants excluded? #20

d11wtq opened this issue Apr 6, 2017 · 0 comments

Comments

@d11wtq
Copy link

d11wtq commented Apr 6, 2017

I'm trying to use WMQ in a multi-threaded Ruby environment. While I can do this fine provided I open and close connections within the same thread, I cannot sensible structure my code around e.g. Connection Pooling.

I see that WMQ itself does support multi-threaded environments, with MQCNO_HANDLE_SHARE_BLOCK, but since GenerateConst explicitly excludes the HANDLE_SHARE options, it's not available out of the box.

I have manually tested with the value of MQCNO_HANDLE_SHARE_BLOCK and everything works as expected (at least from what I can see) and this resolves a whole lot of issues for me. Is there a strong reason why this constant has been excluded, or is it a mistake, or untested?

I'm reluctant to copy and paste the value into our code, since it may change if cmqc.h is updated in a future release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant