Search Unity

System.Threading.ThreadPool' does not contain a definition for `UnsafeQueueUserWorkIt

Discussion in 'iOS and tvOS' started by eric.so, Jul 12, 2013.

  1. eric.so

    eric.so

    Joined:
    Jun 19, 2013
    Posts:
    15
    Hi All,

    I am currently working with websocket-sharp on my iOS/Android project. For some reason, I am getting this error message:

    Assets/Scripts/3rdParty/WebSocket-sharp/Net/ListenerAsyncResult.cs(160,52): error CS0117: `System.Threading.ThreadPool' does not contain a definition for `UnsafeQueueUserWorkItem'

    Does anyone know what is the reason?

    Thanks,
    eso
     
  2. Agent_007

    Agent_007

    Joined:
    Dec 18, 2011
    Posts:
    899
    So it works if your build target is PC/Mac, but not with iOS/Android?
     
  3. eric.so

    eric.so

    Joined:
    Jun 19, 2013
    Posts:
    15
    I am not sure. My project only focus on iOS platform.
     
  4. Graham-Dunnett

    Graham-Dunnett

    Administrator

    Joined:
    Jun 2, 2009
    Posts:
    4,287
  5. pld

    pld

    Joined:
    Dec 12, 2014
    Posts:
    7
    If you want to remain on 2.0 subset, try replacing with ThreadPool.QueueUserWorkItem.