Skip to content

Signaling before waiting on condition variables for the acl_threadsupport.c file in the thread support library #241

@IlanTruanovsky

Description

@IlanTruanovsky

With the way it's currently implemented, wouldn't it be possible to call acl_signal_condvar multiple times, incrementing the c->signal_sem semaphore multiple times (i.e. n times), without ever needing to wait for the condvar? If so, that means we can wait for the condvar n times after having called acl_signal_condvar and have it immediately return, since the semaphore's internal count is n. Is this intentional?

Metadata

Metadata

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions