[PATCH] tevent and threads - infrastructure improvements.
Stefan (metze) Metzmacher
metze at samba.org
Thu Jul 23 20:58:37 UTC 2015
Am 23.07.2015 um 22:55 schrieb Jeremy Allison:
> On Thu, Jul 23, 2015 at 10:43:46AM +0200, Stefan (metze) Metzmacher wrote:
>>
>> True, maybe something like
>>
>> struct tevent_thread_proxy *tevent_thread_proxy_create(struct
>> tevent_context *main_ev);
>
> That works - means more granular locks which is probably a
> good thing.
>
>> void tevent_thread_proxy_schedule(struct tevent_thread_proxy *proxy,
>> struct tevent_immediate **im,
>> tevent_immediate_handler_t handler,
>> void *private_data);
>
> Don't think that works. The caller of tevent_thread_proxy_schedule()
> is the sending thread and should not get a handle back to the created
> struct tevent_immediate * object.
The caller would pass it and it got talloc_move'd.
metze
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20150723/49939e70/signature.sig>
More information about the samba-technical
mailing list