Thread: about CreateSemaphore()

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

    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
Website Security Test