From: bell-lee@hpatlse.atl.hp.com (David Bell-Lee)
Subject: Re: Sharing DCE Client Binding Handles?
Date: Fri, 15 Oct 1993 23:32:58 GMT [thread overview]
Message-ID: <3020001@hpatlse.atl.hp.com> (raw)
In-Reply-To: dnorton-121093151708@130.13.18.159
Derk,
Regarding your question:
> Can multiple threads within a DCE *client* share a fully bound binding
> handle without using a mutex for the handle? If so, are there any
> other precautions I should take when doing so?
> Thanks in advance,
> Derk
>
Though it is, in general, possible to do, expecially if you follow the
guidelines mentioned in the two previous responses, I would be more
inclined to give each thread its own binding handle. Don't forget that
rpc_binding_copy() will dup a binding handle. You can use thread
specific storage, pthread_cleaup_push(), and pthread_cleaup_pop() to
manage the memory for the per thread binding handles. This would be
useful in case you don't know how many threads (and therefore how many
handles) you'll be using. I started out trying to share binding handles
and quickly realized that I would have many fewer headaches using copies.
*--------------------------------------------------------
* David Bell-Lee
* Senior Technology Consultant
* Hewlett-Packard Educational Services
* Mountain View, CA
*
* Telephone : 415/691-3782
*--------------------------------------------------------
prev parent reply other threads:[~1993-10-15 23:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-10-12 21:16 Sharing DCE Client Binding Handles? Derk Norton
1993-10-13 12:34 ` Nathaniel Mishkin
1993-10-13 15:33 ` Greg Brail
1993-10-15 23:32 ` David Bell-Lee [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox