/[eiffelstudio]/FreeELKS/trunk/library/kernel/disposable.e
ViewVC logotype

Contents of /FreeELKS/trunk/library/kernel/disposable.e

Parent Directory Parent Directory | Revision Log Revision Log


Revision 91424 - (show annotations)
Tue Oct 26 18:39:32 2004 UTC (15 years, 3 months ago) by manus_eiffel
File size: 853 byte(s)
Initial revision

1 indexing
2 description:
3 "Perform cleanup operations before current instance is reclaimed by garbage collection."
4 date: "$Date$"
5 revision: "$Revision$"
6
7 deferred class
8 DISPOSABLE
9
10 feature -- Removal
11
12 dispose is
13 -- Action to be executed just before garbage collection
14 -- reclaims an object.
15 -- Effect it in descendants to perform specific dispose
16 -- actions. Those actions should only take care of freeing
17 -- external resources; they should not perform remote calls
18 -- on other objects since these may also be dead and reclaimed.
19 deferred
20 end
21
22 feature {NONE} -- Status report
23
24 is_in_final_collect: BOOLEAN is
25 -- Is GC currently performing final collection
26 -- after execution of current program?
27 -- Safe to use in `dispose'.
28 external
29 "C macro use %"eif_memory.h%""
30 alias
31 "eif_is_in_final_collect"
32 end
33
34 end

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.23