[musl] Always cancelasync as a boolean. NFC#26532
[musl] Always cancelasync as a boolean. NFC#26532sbc100 merged 1 commit intoemscripten-core:mainfrom
Conversation
This is how all the other code in musl already treats it.
|
Hmm, this is what I see when I grep? Can't |
|
Or do you mean all reads treat it as a boolean, not altogether? |
Yes but that would be meaningless/undefined. The two possible values are: if you pass 2 I'm not sure what it would mean, but musl happen to treat that as non-zero/PTHREAD_CANCEL_ASYNCHRONOUS everywhere. |
All the checks are withing the musl codebase are basically boolean checks. Sure you could pass an invalid value to |
kripken
left a comment
There was a problem hiding this comment.
Fair enough. I think it is cleaner to use the constant names, but I guess this API is not going to change, and following musl's conventions is reasonable.
This is how all the other code in musl already treats it.