Primitive types and threading

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • decrypted

    #1

    Primitive types and threading

    Is it generally ok to access static primitive types defined on the main
    thread from a worker thread?


  • 100

    #2
    Re: Primitive types and threading

    I don't see any reason not to do it as long as any attempt simultaneously to
    read and wright the value is synchronized.

    "decrypted" <decrypted@eart hlink.net> wrote in message
    news:OVJI$HvdDH A.3356@TK2MSFTN GP09.phx.gbl...[color=blue]
    > Is it generally ok to access static primitive types defined on the main
    > thread from a worker thread?
    >
    >[/color]


    Comment

    Working...