News for hackers. Stuff that matters.
Re:What could Go wrong with a mutex by _ph_ on Wednesday November 03, 2021 @10:27AM (#29095089)
At function exit. You can of course always create an anonymous function to emulate a block like:

  func() {
    defer something()
    ...
  }()
This basically has the same behavior as having a block there, but with the defer being called at the exit of that functions body.

There are no comments on this comment yet.