Claudiu HBann
Claudiu HBann
CC#
Created by Claudiu HBann on 7/31/2024 in #help
CSharp's C++ std::variant
i dont have a specific problem, i was ust curious
11 replies
CC#
Created by Claudiu HBann on 7/31/2024 in #help
CSharp's C++ std::variant
are any popular libraries that mimics the most C++ STL containers?
11 replies
CC#
Created by Claudiu HBann on 7/31/2024 in #help
CSharp's C++ std::variant
what do you mean by pattern matching? checking for the object's type?
11 replies
CC#
Created by Claudiu HBann on 2/17/2024 in #help
async/await and mutexes
I think what he said is an overkill, I want this to be initialized only once and when I need it not to run a service indefinetly that does nothing https://learn.microsoft.com/en-us/aspnet/core/fundamentals/host/hosted-services?view=aspnetcore-8.0&tabs=visual-studio
9 replies
CC#
Created by Claudiu HBann on 2/17/2024 in #help
async/await and mutexes
I want to do this as correctly as possible
9 replies
CC#
Created by Claudiu HBann on 2/17/2024 in #help
async/await and mutexes
a friend of mine said that i should make a hosted service for this, is this a good solution?
9 replies
CC#
Created by Claudiu HBann on 2/17/2024 in #help
async/await and mutexes
I think I do need a mutex, if 2 or more threads call at the "same" time it will populate 2 or more times with the same values I don't know if I need a mutex exactly, but I do need to sync the initialization
9 replies
CC#
Created by Claudiu HBann on 2/17/2024 in #help
async/await and mutexes
that's how I would do it in c++, a std::mutex and a std::scoped_lock, idk in c# exactly
9 replies
CC#
Created by Claudiu HBann on 12/25/2023 in #help
C# Tasks question
the blog post is named "There is no thread" and he says that the async method will contie on a THREAD pool
23 replies
CC#
Created by Claudiu HBann on 12/25/2023 in #help
C# Tasks question
bro... wtf
23 replies
CC#
Created by Claudiu HBann on 12/25/2023 in #help
C# Tasks question
when there is only the CPU involved everything is sync?
23 replies
CC#
Created by Claudiu HBann on 12/25/2023 in #help
C# Tasks question
so the logic i said it's fine? i understood correctly? only for IO operations?
23 replies
CC#
Created by Claudiu HBann on 12/25/2023 in #help
C# Tasks question
about this one i am going to read it again because, maybe i read it wrong but, it contradicts the first blog a little
23 replies
CC#
Created by Claudiu HBann on 12/25/2023 in #help
C# Tasks question
so basically your first blog says that all the operations in the end are made by the hardware (read/write to the disk or a socket) and let's say you have a async method A with 2 awaits and the first is a socket read and the second is a disk write and the first operation starts and the method suspends and the control is returned to the caller and after a while when the operation is done there is an interrupt and the current running thread is suspended and the method is running right now and the first operation from the async method s completed and the next is taken and repeat?
23 replies
CC#
Created by Claudiu HBann on 12/25/2023 in #help
C# Tasks question
i am going to read the post provided later
23 replies
CC#
Created by Claudiu HBann on 12/25/2023 in #help
C# Tasks question
I can see that but the question is how is it working, like what is c# doing behind
23 replies