You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
Just to warn before explaining that it's my first time opening an issue, so if I say a misconception, I have my mind open for this.
The proposal is making threaded calls like "async" and "await" have a macro to not use threads at all, like MUJS_SINGLETHREADED.
The most common method for making multi-threaded calls single-threaded is faking it, like how some OS's and kernels do, for example:
unsigned intthread_id; // ID of the threadwhile (1) { // Loop exampleswitch (thread_id) { // Executes call on threadcase0: ...
case1: ...
}
}
I was going to make a pull request with more context and an in-practice application for it, but I'm not really sure if it would be viable giving the context.
Thanks for reading, have a good morning, afternoon or night :)
The text was updated successfully, but these errors were encountered:
lipx1508
changed the title
Suggestion - macro to make multi-threaded calls multi-threaded
Suggestion - macro to make multi-threaded calls single-threaded
Mar 28, 2023
Hello!
Just to warn before explaining that it's my first time opening an issue, so if I say a misconception, I have my mind open for this.
The proposal is making threaded calls like "async" and "await" have a macro to not use threads at all, like
MUJS_SINGLETHREADED
.The most common method for making multi-threaded calls single-threaded is faking it, like how some OS's and kernels do, for example:
I was going to make a pull request with more context and an in-practice application for it, but I'm not really sure if it would be viable giving the context.
Thanks for reading, have a good morning, afternoon or night :)
The text was updated successfully, but these errors were encountered: