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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Synchronization Objects

Synchronization Objects

Scheduled Pinned Locked Moved C / C++ / MFC
question
6 Posts 4 Posters 1 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.
  • B Offline
    B Offline
    bluehai
    wrote on last edited by
    #1

    May I use Synchronization Objects like CSemaphore for synchronization function not to be threads ? Thanks in advance:)

    N B 2 Replies Last reply
    0
    • B bluehai

      May I use Synchronization Objects like CSemaphore for synchronization function not to be threads ? Thanks in advance:)

      N Offline
      N Offline
      Nilesh K
      wrote on last edited by
      #2

      Yes you can use that, It would always be in current thread context.

      - Nilesh "Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw

      1 Reply Last reply
      0
      • B bluehai

        May I use Synchronization Objects like CSemaphore for synchronization function not to be threads ? Thanks in advance:)

        B Offline
        B Offline
        Bob Stanneveld
        wrote on last edited by
        #3

        hcmuns wrote: synchronization function not to be threads Could you elaborate that? Currently I think that you want to use synchronization objects in a single threaded application, which is (in most cases) not necessary. Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

        L 2 Replies Last reply
        0
        • B Bob Stanneveld

          hcmuns wrote: synchronization function not to be threads Could you elaborate that? Currently I think that you want to use synchronization objects in a single threaded application, which is (in most cases) not necessary. Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          I would like to use in my class:)

          B 1 Reply Last reply
          0
          • B Bob Stanneveld

            hcmuns wrote: synchronization function not to be threads Could you elaborate that? Currently I think that you want to use synchronization objects in a single threaded application, which is (in most cases) not necessary. Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            I would like to use in my class:)

            1 Reply Last reply
            0
            • L Lost User

              I would like to use in my class:)

              B Offline
              B Offline
              Bob Stanneveld
              wrote on last edited by
              #6

              Hello, I suppose that you use them in a multithreaded application. In that case you should use them whenever multiple threads can access the same data at the same time! Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

              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