Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Regarding ReferenceQueue  RSS feed

 
surya.raaj prakash
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

Use of Reference Queue with soft reference and weak reference is optional,
but each phantom reference you must be associated with ReferenceQueue, WHY?
 
surya.raaj prakash
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any Reply/
 
Henry Wong
author
Sheriff
Posts: 22840
119
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
surya.raaj prakash wrote:but each phantom reference you must be associated with ReferenceQueue, WHY?


Okay, let's assume that there was an option to declare a phantom reference without a ReferenceQueue -- how do you propose that it be used?

Henry
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!