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. Web Development
  3. JavaScript
  4. Equivalent to System.Math.Max(System.Threading.Interlocked.Increment

Equivalent to System.Math.Max(System.Threading.Interlocked.Increment

Scheduled Pinned Locked Moved JavaScript
javascriptcsharp
4 Posts 2 Posters 3 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.
  • P Offline
    P Offline
    Pierre besquent
    wrote on last edited by
    #1

    Hi, I want the equivalent of System.Math.Max(System.Threading.Interlocked.Increment in Javascript.I used it in my c# project and want to reuse it in JS. ty

    N 1 Reply Last reply
    0
    • P Pierre besquent

      Hi, I want the equivalent of System.Math.Max(System.Threading.Interlocked.Increment in Javascript.I used it in my c# project and want to reuse it in JS. ty

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Math.max[^] JavaScript doesn't support threading so you will not get an exact equivalent


      I know the language. I've read a book. - _Madmatt

      P 1 Reply Last reply
      0
      • N Not Active

        Math.max[^] JavaScript doesn't support threading so you will not get an exact equivalent


        I know the language. I've read a book. - _Madmatt

        P Offline
        P Offline
        Pierre besquent
        wrote on last edited by
        #3

        Hi, what is the fonctionality of System.Math.Max(System.Threading.Interlocked.Increment(i), i - 1); ty

        N 1 Reply Last reply
        0
        • P Pierre besquent

          Hi, what is the fonctionality of System.Math.Max(System.Threading.Interlocked.Increment(i), i - 1); ty

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          System.Threading.Interlocked.Increment() http://msdn.microsoft.com/en-us/library/system.threading.interlocked.aspx[^] The variable i is being incremented in a thread-safe manner and used as the first parameter to System.Math.Max A littel research goes a long way


          I know the language. I've read a book. - _Madmatt

          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