about CreateSemaphore()

This is a discussion on about CreateSemaphore() within the Windows Programming forums, part of the Platform Specific Boards category; Hi Is there a possibility that in a process we may exceed the lMaxCount of the semphore? If so, what ...

  1. #1
    Just kidding.... fnoyan's Avatar
    Join Date
    Jun 2003
    Location
    Still in the egg
    Posts
    269

    about CreateSemaphore()

    Hi

    Is there a possibility that in a process we may exceed the lMaxCount of the semphore? If so, what will happen?

    Thanks...

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    This shouldn't happen. ReleaseSemaphore will return false and leave the count unchanged if increasing the count would make it higher then iMaximumCount.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. CreateSemaphore() ?
    By Devil Panther in forum Windows Programming
    Replies: 10
    Last Post: 08-02-2005, 11:28 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21