Boost logo

Boost-Build :

Subject: Re: [Boost-build] async rule execution
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2017-05-10 15:24:47


On 05/10/2017 09:17 AM, Stefan Seefeld via Boost-build wrote:
> browsing the bjam sources I ran into
> /* Call the callback, may call back to jam rule land. */
> (*cmdtab[ i ].func)( cmdtab[ i ].closure, rstat, &time_info,
> cmdtab[ i ].buffer[ OUT ], cmdtab[ i ].buffer[ ERR ],
> cmdtab[ i ].exit_reason );
> (
> which suggests it's possible to have a callback call into the b2 layer
> (i.e., running some post-processing rule coded in Jam). Is that possible
> ? The only callback implementation I could find was the `make1c_closure`
> which is used to collect status information, but which isn't passed
> directly on into Jam, and thus can only be processed synchronously once
> the call to `builtin_update_now` has completed.
> Am I missing anything ?

It's called in make1c_closure here:

In Christ,
Steven Watanabe

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at