Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Article Writing
  4. Thread pool?

Thread pool?

Scheduled Pinned Locked Moved Article Writing
c++tutorialquestion
2 Posts 2 Posters 5 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 2520758
    wrote on last edited by
    #1

    Hi, Have anyone any sample how to do a thread pool to win32 with C++ ? Regards MiLa

    A 1 Reply Last reply
    0
    • U User 2520758

      Hi, Have anyone any sample how to do a thread pool to win32 with C++ ? Regards MiLa

      A Offline
      A Offline
      Andreas
      wrote on last edited by
      #2

      I have a simple soucecode. I should not be a problem to implement it with MFC once you understand how it works (unfortinally the reverse is not so easy. MFC to simple function) Why does the program use other y pos than it was assigned? Sleep can solve bugs that is hard to find. Remove the comment to se the effect of sleep. _____________________________________________________________________________________ #include #include //Make sure you use Project->Settings->C/C++ ->Code Generation->Use runtime library->"Multithreaded dll" #include HANDLE hStdOut; char space[10]; DWORD test=0; #define MAX_CONCURRENT_THREADS 10 BOOL MyFunc(int x); HANDLE hEvent; void main(void) { hStdOut = GetStdHandle( STD_OUTPUT_HANDLE ); int x=0; hEvent = CreateEvent(0,0,0,0); while(x500000) _endthread(); } return 1; } Regards Andreas ================== The original message was: Hi,

      Have anyone any sample how to do a thread pool
      to win32 with C++ ?

      Regards

      MiLa

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups