Implementing C++ std::thread using Win32 api.

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ต.ค. 2024
  • Code on GitHub: github.com/isn...

ความคิดเห็น • 7

  • @bennguyen1313
    @bennguyen1313 6 หลายเดือนก่อน

    How could you programmatically enable/disable threads? And how do the threads pass messages to one another?
    For example, I'd like to make a GUI application that displays data coming from the serial port or from can bus.. so a total of three threads : GUI, Serial, Can-Bus.
    However, while the GUI thread is always active, I'd like if the user to enable/disable the serial and can-bus interfaces.
    But how would the GUI thread send a message to the Serial thread to tell it to Stop/Re-Init/Start? Similarly, how does the Serial thread send a message to the GUI telling it to display some data?

  • @goddamnilovecoding6051
    @goddamnilovecoding6051 10 หลายเดือนก่อน

    whats the VS theme?

  • @LinguisticMirage
    @LinguisticMirage 7 หลายเดือนก่อน

    just want to ask why should we use the win32api version of the same thing that already exists in std. im just curious and want to know your opinion

    • @isnastish
      @isnastish  5 หลายเดือนก่อน

      for educational purposes, just to know how it works under the hood on windows. But obviously, you are right, there is absolutely no sense.

    • @LinguisticMirage
      @LinguisticMirage 5 หลายเดือนก่อน

      @@isnastish well that is a valid reason! Learning is important :D

  • @calphystylez5976
    @calphystylez5976 ปีที่แล้ว +1

    1080p please

    • @isnastish
      @isnastish  ปีที่แล้ว

      It will come later eventually, you would have to wait for a bit.
      My bad, I will schedule videos from now on.