Roxen.git/
server/
base_server/
configuration.pike
Branch:
Tag:
Non-build tags
All tags
No tags
1998-07-04
1998-07-04 13:05:47 by Henrik Grubbström (Grubba) <grubba@grubba.org>
ec058c91cff176854598446358a83267fc03ef21 (
21
lines) (+
20
/-
1
)
[
Show
|
Annotate
]
Branch:
5.2
Added function clear_memory_caches().
Rev: server/base_server/configuration.pike:1.142
1:
-
string cvs_version = "$Id: configuration.pike,v 1.
141
1998/07/
03
12
:
06
:
19
grubba Exp $";
+
string cvs_version = "$Id: configuration.pike,v 1.
142
1998/07/
04
13
:
05
:
47
grubba Exp $";
#include <module.h> #include <roxen.h>
982:
#endif }
+
// Empty all the caches above AND the ones in the loaded modules.
+
void clear_memory_caches()
+
{
+
invalidate_cache();
+
foreach(indices(otomod), object m) {
+
if (m->clear_memory_caches) {
+
mixed err = catch {
+
m->clear_memory_caches();
+
};
+
if (err) {
+
report_error(sprintf("clear_memory_caches() failed for module %O:\n"
+
"%s\n",
+
otomod[m], describe_backtrace(err)));
+
}
+
}
+
}
+
}
-
+
string draw_saturation_bar(int hue,int brightness, int where) { object bar=Image.image(30,256);