Skip to content

MultiThreadedExecutor does not process callbacks asynchronously #198

@jacobperron

Description

@jacobperron

Each callback is guarded by mutex, so even though they are happening in different threads, they are processed in series:

synchronized (mutex) {
this.spinOnce();
}

I proposed a patch to actually execute callbacks in parallel by default (osrf#86), but @ivanpauno pointed out that it would be more consistent with other client libraries to introduce the concept of callback groups. I agree with this as it would not only be consistent, but make it more flexible to configure the executor.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions