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. The Lounge
  3. Naming

Naming

Scheduled Pinned Locked Moved The Lounge
question
16 Posts 12 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.
  • G gggustafson

    Should WaitOne have been named WaitOn?

    Gus Gustafson

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

    Hmmm, I think the One in the name is referring to the number of objects you are waiting on. The Windows API equivalent would probably be WaitForSingleObject[^].

    G P 2 Replies Last reply
    0
    • L Lost User

      Hmmm, I think the One in the name is referring to the number of objects you are waiting on. The Windows API equivalent would probably be WaitForSingleObject[^].

      G Offline
      G Offline
      gggustafson
      wrote on last edited by
      #3

      +5 Good thought.

      Gus Gustafson

      L 1 Reply Last reply
      0
      • G gggustafson

        Should WaitOne have been named WaitOn?

        Gus Gustafson

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #4

        Maybe, if "wait one" implies a time limit, but "wait on" does not.

        1 Reply Last reply
        0
        • G gggustafson

          +5 Good thought.

          Gus Gustafson

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

          Of course, I'm assuming that you were referring to WaitOne[^]. :-D

          1 Reply Last reply
          0
          • G gggustafson

            Should WaitOne have been named WaitOn?

            Gus Gustafson

            Mike HankeyM Offline
            Mike HankeyM Offline
            Mike Hankey
            wrote on last edited by
            #6

            WaitADaGumMinute?

            The most expensive tool is a cheap tool. Gareth Branwyn JaxCoder.com

            D 1 Reply Last reply
            0
            • G gggustafson

              Should WaitOne have been named WaitOn?

              Gus Gustafson

              M Offline
              M Offline
              Marc Clifton
              wrote on last edited by
              #7

              Nope. WaitOne means you're waiting on a single signal as opposed to WaitAny and WaitAll. The term "WaitOn" could mean "wait on one signal" or "wait on any signal" or "wait on all", all of which are very ambiguous with the adjective "on". When dealing with threads and signaling, being very clear is critical for successful task/thread management.

              Latest Article:
              Create a Digital Ocean Droplet for .NET Core Web API with a real SSL Certificate on a Domain

              D J 2 Replies Last reply
              0
              • Mike HankeyM Mike Hankey

                WaitADaGumMinute?

                The most expensive tool is a cheap tool. Gareth Branwyn JaxCoder.com

                D Offline
                D Offline
                Daniel Pfeffer
                wrote on last edited by
                #8

                "Wait One" referring to waiting a minute is US dialect / jargon. We should have "WaitOneSecond", "WaitOneMinute", ...

                Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                1 Reply Last reply
                0
                • M Marc Clifton

                  Nope. WaitOne means you're waiting on a single signal as opposed to WaitAny and WaitAll. The term "WaitOn" could mean "wait on one signal" or "wait on any signal" or "wait on all", all of which are very ambiguous with the adjective "on". When dealing with threads and signaling, being very clear is critical for successful task/thread management.

                  Latest Article:
                  Create a Digital Ocean Droplet for .NET Core Web API with a real SSL Certificate on a Domain

                  D Offline
                  D Offline
                  dan sh
                  wrote on last edited by
                  #9

                  Considering how much you like proper naming, I would have called it BRB just to see your reaction. :)

                  "It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[^]

                  D M 2 Replies Last reply
                  0
                  • L Lost User

                    Hmmm, I think the One in the name is referring to the number of objects you are waiting on. The Windows API equivalent would probably be WaitForSingleObject[^].

                    P Offline
                    P Offline
                    Paul Sanders the other one
                    wrote on last edited by
                    #10

                    I think so too

                    Paul Sanders. If I had more time, I would have written a shorter letter - Blaise Pascal. Some of my best work is in the undo buffer.

                    1 Reply Last reply
                    0
                    • D dan sh

                      Considering how much you like proper naming, I would have called it BRB just to see your reaction. :)

                      "It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[^]

                      D Offline
                      D Offline
                      Daniel Pfeffer
                      wrote on last edited by
                      #11

                      dan!sh wrote:

                      called it BRB

                      We need a "vomiting" reaction! People using SMS abbreviations in their code should be defenestrated, then hangéd* from the nearest lamppost as a warning to others! :mad: :) * Much worse than a regular hanging!

                      Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                      S 1 Reply Last reply
                      0
                      • G gggustafson

                        Should WaitOne have been named WaitOn?

                        Gus Gustafson

                        O Offline
                        O Offline
                        obermd
                        wrote on last edited by
                        #12

                        It's based on waiting for a single object. There are also WaitAny and WaitAll that wait on an array of objects.

                        I 1 Reply Last reply
                        0
                        • M Marc Clifton

                          Nope. WaitOne means you're waiting on a single signal as opposed to WaitAny and WaitAll. The term "WaitOn" could mean "wait on one signal" or "wait on any signal" or "wait on all", all of which are very ambiguous with the adjective "on". When dealing with threads and signaling, being very clear is critical for successful task/thread management.

                          Latest Article:
                          Create a Digital Ocean Droplet for .NET Core Web API with a real SSL Certificate on a Domain

                          J Offline
                          J Offline
                          jmaida
                          wrote on last edited by
                          #13

                          agree with Marc's comments

                          "A little time, a little trouble, your better day" Badfinger

                          1 Reply Last reply
                          0
                          • D dan sh

                            Considering how much you like proper naming, I would have called it BRB just to see your reaction. :)

                            "It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[^]

                            M Offline
                            M Offline
                            Marc Clifton
                            wrote on last edited by
                            #14

                            dan!sh wrote:

                            I would have called it BRB just to see your reaction.

                            :laugh: Or as is often the case, BBL.

                            Latest Article:
                            Create a Digital Ocean Droplet for .NET Core Web API with a real SSL Certificate on a Domain

                            1 Reply Last reply
                            0
                            • D Daniel Pfeffer

                              dan!sh wrote:

                              called it BRB

                              We need a "vomiting" reaction! People using SMS abbreviations in their code should be defenestrated, then hangéd* from the nearest lamppost as a warning to others! :mad: :) * Much worse than a regular hanging!

                              Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                              S Offline
                              S Offline
                              Shmoken99
                              wrote on last edited by
                              #15

                              To truly punish them we'd make them maintain our legacy code. Serves 'em right.

                              1 Reply Last reply
                              0
                              • O obermd

                                It's based on waiting for a single object. There are also WaitAny and WaitAll that wait on an array of objects.

                                I Offline
                                I Offline
                                Ian Lovely
                                wrote on last edited by
                                #16

                                Its not waiting for an object, its pausing itself until the timeout period elapse or the release signal is received. I think it should just be called wait(). Wait one implies that it waits until the supplied thread is released which is not what happens.

                                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