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. .NET (Core and Framework)
  4. Debgugging application with AsyncOperations

Debgugging application with AsyncOperations

Scheduled Pinned Locked Moved .NET (Core and Framework)
comquestion
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.
  • J Offline
    J Offline
    Jeroen De Dauw
    wrote on last edited by
    #1

    Hey, When I run a worker thread via an async operation, it get named 'Worker Thread', which forces me to go identify the threads by looking at some id value every time. Is there a way to make an AsyncOperation run on a named worker thread? Cheers

    Jeroen De Dauw --- Forums ; Blog ; Wiki --- 70 72 6F 67 72 61 6D 6D 69 6E 67 20 34 20 6C 69 66 65!

    L L 2 Replies Last reply
    0
    • J Jeroen De Dauw

      Hey, When I run a worker thread via an async operation, it get named 'Worker Thread', which forces me to go identify the threads by looking at some id value every time. Is there a way to make an AsyncOperation run on a named worker thread? Cheers

      Jeroen De Dauw --- Forums ; Blog ; Wiki --- 70 72 6F 67 72 61 6D 6D 69 6E 67 20 34 20 6C 69 66 65!

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

      jeroen de dauw wrote:

      When I run a worker thread via an async operation, it get named 'Worker Thread', which forces me to go identify the threads by looking at some id value every time. Is there a way to make an AsyncOperation run on a named worker thread?

      It's a bit sealed, and there's no Tag property that you could abuse. The best I can think of would be a Hashtable or a Dictionary, perhaps using an extension-method to make the lookup somewhat easier.

      I are Troll :suss:

      1 Reply Last reply
      0
      • J Jeroen De Dauw

        Hey, When I run a worker thread via an async operation, it get named 'Worker Thread', which forces me to go identify the threads by looking at some id value every time. Is there a way to make an AsyncOperation run on a named worker thread? Cheers

        Jeroen De Dauw --- Forums ; Blog ; Wiki --- 70 72 6F 67 72 61 6D 6D 69 6E 67 20 34 20 6C 69 66 65!

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        I have looked high and low trying to name .NET threads, and came up with nothing. My logging tends to show a 2-hex-digit managed thread ID (except " " for the main tread), that's the best I have; the only alternative I see is with a map, say a Dictionary<int,string> as Eddy suggested. :)

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


        Merry Christmas and a Happy New Year to all.


        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