Skip to content

Allow Lace to work with foreign threads - #22

Open
alaarman wants to merge 1 commit into
trolando:masterfrom
alaarman:master
Open

Allow Lace to work with foreign threads#22
alaarman wants to merge 1 commit into
trolando:masterfrom
alaarman:master

Conversation

@alaarman

Copy link
Copy Markdown

This allows the use of Lace in e.g. LTSmin:

lace_init_static(HREpeers(), dqsize);
hre_init_and_spawn_workers (argc, argv);
/*************************************************************************/
/* from this location on, multiple workers execute the code in parallel  */
/*************************************************************************/

lace_init_worker (HREme(HREglobal())); // catches slaves

CALL(reach_do, ctx->initial->ref);

This allows the use of Lace in e.g. LTSmin:

    lace_init_static(HREpeers(), dqsize);
    hre_init_and_spawn_workers (argc, argv);
    /*************************************************************************/
    /* from this location on, multiple workers execute the code in parallel  */
    /*************************************************************************/

    lace_init_worker (HREme(HREglobal())); // catches slaves

    CALL(reach_do, ctx->initial->ref);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant