It's just to be sure that when your code for some reason comes back the other side of the code cannot acquire the mutex and further modify the var after signaling.
cppreference is really well checked, I once made an edit and peoples from Morgan Stanley discussed with me and proved me I was wrong. I suppose Bjarne works at Morgan so he must have some great team there doing that site.
Or you get tons of events
ArthurSonzogni
@ArthurSonzogni
^^ Funny story!
Damien Buhl
@daminetreg
But definitely I think you will better be server by asio io_context posting events. It's more js execution style and well fitted for event loops. Condition variables just drives peoples crazy. ^^
And you can easily add it via : "platform" : ["Boost::+boost", "Boost::system"]
ArthurSonzogni
@ArthurSonzogni
Okay, I just understood.
I was using: cat test.json | json-ui
I was expecting FTXUI to get the event from the standard output, but it wasn't the case.
Damien Buhl
@daminetreg
wow looks cool to use json-ui
just pipe some json in and boom ^^
ArthurSonzogni
@ArthurSonzogni
Yes, but I wanted the user to be able to interact with the JSON. I need the standard input.
ArthurSonzogni
@ArthurSonzogni
Ha, I just found a go project doing exactly what I wanted. It is called jsonui, the same name as the one I wanted: https://github.com/gulyasm/jsonui
I don't understand how they can make: cat file.json | json-ui to work
the standard input is the file. So they don't receive any events.
Damien Buhl
@daminetreg
it's in go and not with FTXUI so it can't be good lol
I'm joking
@ArthurSonzogni You can handle that and open stdin yourself I believe
ArthurSonzogni
@ArthurSonzogni
I need to fill the FTXUI Readme by many projects using it.
Damien Buhl
@daminetreg
You mean the go project uses FTXUI ?
ArthurSonzogni
@ArthurSonzogni
No, they don't.
Damien Buhl
@daminetreg
Ah ok
ArthurSonzogni
@ArthurSonzogni
Yes, maybe there is a way to open the terminal input.
Damien Buhl
@daminetreg
I would like to make nxxm more interactive on the command line with FTXUI
_
For example for login/password insertion
Or for CI
I would like nxxm ci to show the job status and allow triggering, opening browser...
I think there is something with the idea of controlling-tty
ArthurSonzogni
@ArthurSonzogni
It works! Thanks!
Damien Buhl
@daminetreg
Cool learned by the way that it indeed works. The guy on SO deserves a +1
ArthurSonzogni
@ArthurSonzogni
I have so many votes on StackOverflow that doesn't count because I have myself less than 15.
I have 61 rep in Mathematic and 1 in StackOverflow
Damien Buhl
@daminetreg
Maths!!!
^^
Jason Rice
@ricejasonf
check check
Damien Buhl
@daminetreg
Hi Jason ^^
Jason Rice
@ricejasonf
hello
your website looks really good
Damien Buhl
@daminetreg
Thanks. Needs a bit of assets size reduction though
Jason Rice
@ricejasonf
I'm just perusing through your stuff. It looks like you have a Beast based http server or client, but your websockets is wasm on the server side. Is that right?
err... websockets
Damien Buhl
@daminetreg
We have beast for non wasm platforms in nxxm/xxhr
Which is an high level http client
And for the backend it’s for the moment node based
I use the node runtime to forward http request to c++ route handler