-
-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update hl._std.sys.thread.Lock #8744
Conversation
Lock bindings
Please remove the docstrings from the |
std/hl/_std/sys/thread/Lock.hx
Outdated
class Lock { | ||
var deque:sys.thread.Deque<Bool>; | ||
extern class Lock { | ||
public function new():Void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public
is redundant in externs.
This cannot be merged as-it as we need to be able to set the minimal HL version to 1.11, the way we did for Date utc_inf |
@ncannasse is it ready to merge? |
I think there's still an issue given for documentation generation since we cannot have a std class that is sometimes an abstract on some platforms. please confirm @RealyUniqueName |
Yeah, that's bad. Especially given that in the doc we will have it listed as a class, but in an actuall code it will be an abstract. I suggest to change it to something like this: class Lock {
var native:hl.Abstract<"hl_lock">;
<...>
} |
change abstract to class
updae bindings call
@RealyUniqueName ok for 4.0 branch |
Done |
haxe implementation of the lock bindings(HaxeFoundation/hashlink/pull/292) suggested by @ncannasse at #8699