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. General Programming
  3. C / C++ / MFC
  4. ReleaseMutex

ReleaseMutex

Scheduled Pinned Locked Moved C / C++ / MFC
3 Posts 3 Posters 0 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.
  • S Offline
    S Offline
    slah
    wrote on last edited by
    #1

    i have defined a global handle to MUTEX and creating it in one funtion and releasing in the other funtion, but it won't allow me to do so. what to do for it. i need to own it. how it is possible

    S T 2 Replies Last reply
    0
    • S slah

      i have defined a global handle to MUTEX and creating it in one funtion and releasing in the other funtion, but it won't allow me to do so. what to do for it. i need to own it. how it is possible

      S Offline
      S Offline
      Simon W 0
      wrote on last edited by
      #2

      Before release it,you should unlock it first I am seeking... For what? Why did you ask me for what? I don't know!

      1 Reply Last reply
      0
      • S slah

        i have defined a global handle to MUTEX and creating it in one funtion and releasing in the other funtion, but it won't allow me to do so. what to do for it. i need to own it. how it is possible

        T Offline
        T Offline
        Tim Smith
        wrote on last edited by
        #3

        You can't have one thread aquire the mutex and another release. If you are trying to do this in the same thread, then you have other problems. Tim Smith "Programmers are always surrounded by complexity; we can not avoid it... If our basic tool, the language in which we design and code our programs, is also complicated, the language itself becomes part of the problem rather that part of the solution." Hoare - 1980 ACM Turing Award Lecture

        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