Search
Setup for Free
SX
Stardust XR
•
4y ago
Malek
this makes the executeSyncMethod function wait until the callback in your async method has run its f
this makes the executeSyncMethod function wait until the callback in your async method has run its function
Stardust XR
Join
814
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
M
Malek
OP
•
4/6/22, 8:33 PM
i
'm sorta mixing c
+
+ with java syntax here
, cause i haven
't done C
+
+ in a couple months sorry
hope its still intelligable
T
Turtle1331
•
4/6/22, 10:01 PM
obligatory post
https://journal.stuffwithstuff.com/2015/02/01/what-color-is-your-function
T
Turtle1331
•
4/6/22, 10:02 PM
(also
, the real truth is function color is
a monad
)
M
Malek
this makes the executeSyncMethod function wait until the callback in your async ...
N
Nova
•
4/7/22, 2:12 AM
ohhhh yea that
's perfect
, why was i such a derp
M
Malek
OP
•
4/7/22, 2:13 AM
:vibecat
:
M
Malek
OP
•
4/7/22, 2:13 AM
Lek help
!
N
Nova
•
4/7/22, 2:14 AM
i was gonna do a conditional wait variable and all this nonsense
N
Nova
•
4/7/22, 2:14 AM
but that works better
M
Malek
OP
•
4/7/22, 2:16 AM
Yay
!
N
Nova
•
4/7/22, 2:20 AM
wait idk if c
+
+ has mutex wait
N
Nova
•
4/7/22, 2:30 AM
it doesn
't
N
Nova
•
4/7/22, 2:31 AM
oh there
's
s
t
d
:
:future
N
Nova
•
4/7/22, 2:31 AM
that
'll work
N
Nova
•
4/7/22, 2:35 AM
thanks for your help
, apparently you saying java got me to think of something I needed
@Malek
N
Nova
thanks for your help, apparently you saying java got me to think of something I ...
M
Malek
OP
•
4/7/22, 2:52 AM
pog
!
M
Malek
OP
•
4/7/22, 2:52 AM
also i believ the most recent revisions of C
+
+ include mutex
N
Nova
•
4/7/22, 2:53 AM
yea mutex exists
N
Nova
•
4/7/22, 2:53 AM
but not
m
u
t
e
x
:
:wait
M
Malek
OP
•
4/7/22, 2:53 AM
oh
, oh no
S
Saphira Kai
•
4/7/22, 2:54 AM
what
's a mutex again
S
Saphira Kai
•
4/7/22, 2:54 AM
lmao
M
Malek
OP
•
4/7/22, 2:54 AM
locks threads
N
Nova
•
4/7/22, 2:55 AM
yea it waits until another thread has done something
S
Saphira Kai
•
4/7/22, 2:55 AM
oh okay lol
S
Saphira Kai
•
4/7/22, 2:55 AM
seems like a weirdly complicated word for that
N
Nova
•
4/7/22, 2:55 AM
really useful when you wanna make sure only 1 thread can mess with a variable at a time or shenanigans like making async methods sync
S
Saphira Kai
•
4/7/22, 2:55 AM
the only low level language i
've really worked with often is rust so
M
Malek
OP
•
4/7/22, 2:56 AM
ah
S
Saphira Kai
the only low level language i've really worked with often is rust so
N
Nova
•
4/7/22, 2:58 AM
tbh i should really have made the stardust openxr stuff in rust but
.
.
. idk how to use rust despite trying soooo
N
Nova
•
4/7/22, 2:58 AM
yea
M
Malek
OP
•
4/7/22, 2:58 AM
you made it in c
+
+
?
N
Nova
•
4/7/22, 2:58 AM
yea
, all the stardust stuff is c
+
+
N
Nova
•
4/7/22, 2:59 AM
you can make bindings for stardust clients in basically any language though
S
Saphira Kai
•
4/7/22, 2:59 AM
rust is
.
.
.good
M
Malek
OP
•
4/7/22, 2:59 AM
i mean
, that increases the likelyhood people will contribute and fix bugs
, rust still isn
't anywhere as popular
M
Malek
OP
•
4/7/22, 2:59 AM
in terms of usage
S
Saphira Kai
•
4/7/22, 2:59 AM
but
.
.
.
uuggghhhh lmao
N
Nova
•
4/7/22, 2:59 AM
well
.
.
. any language that supports unix domain sockets and flatbuffers
/flexbuffers will work for stardust bindings
S
Saphira Kai
•
4/7/22, 2:59 AM
if i ever actually get to a point of understanding the protocol well enough i might give it a shot in go tbh
N
Nova
•
4/7/22, 3:00 AM
haha sure
N
Nova
•
4/7/22, 3:00 AM
idk how 3D math will work there but
.
.
. go for it
S
Saphira Kai
•
4/7/22, 3:00 AM
lol
M
Malek
OP
•
4/7/22, 3:01 AM
OwO go would be interesting
S
Saphira Kai
•
4/7/22, 3:01 AM
controversial opinion but go is kinda my go
-to low
-ish level language rn
S
Saphira Kai
•
4/7/22, 3:01 AM
it
's simple and i like simple
N
Nova
•
4/7/22, 3:01 AM
i treat go as basically like Python is to CV
/ML
, but for network stuff
N
Nova
•
4/7/22, 3:01 AM
it
's great network glue
N
Nova
•
4/7/22, 3:01 AM
but it
's not really for heavy processing or heavy system integration
S
Saphira Kai
•
4/7/22, 3:04 AM
fair enough yeah
S
Saphira Kai
•
4/7/22, 3:05 AM
i believe it can import c code
Next page
Similar Threads
Cannot run StardustXR server
SX
Stardust XR / support
2y ago
How is your current experience w AnswerOverflow?
SX
Stardust XR / support
3mo ago
Can not run wayland applications under stardust
SX
Stardust XR / support
2y ago