Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
15.668 Beiträge
 
#1

FreeAndNil Debate: Thread Safety

  Alt 1. Jul 2022, 10:50
One of the topics raised in yesterday's FreeAndNil debate was using FreeAndNil inmulti-threaded code for avoiding access to a dangling reference when multiplethreads are accessing and using the same object instance.Problem is that FreeAndNil is not thread-safe and cannot be used to achievethread safety. You cannot call FreeAndNil on a shared object reference in one thread andthen use if

Weiterlesen...
  Mit Zitat antworten Zitat