ObjStore-REP-Ring
view release on metacpan or search on metacpan
osp_thr::register_schema("ObjStore::REP::Ring",
&ObjStore_REP_Ring_dll_schema_info);
}
MODULE = ObjStore::REP::Ring PACKAGE = ObjStore::REP::Ring::Index
static void
new(clsv, seg)
SV *clsv;
SV *seg;
PPCODE:
os_segment *area = osp_thr::sv_2segment(seg);
PUTBACK;
OSPV_ring_index1 *pv;
NEW_OS_OBJECT(pv, area, OSPV_ring_index1::get_os_typespec(), OSPV_ring_index1());
pv->bless(ST(0));
return;
void
OSSVPV::_conf_slot(...)
PPCODE:
PUTBACK;
OSPV_ring_index1 *pv = (OSPV_ring_index1 *) THIS;
SV *ret=0;
if (items == 2) {
pv->fix_stats();
if (pv->fill) croak("Can't reconfigure non-empty index");
pv->conf = SvOK(ST(1))? osp_thr::sv_2bridge(ST(1), 1)->ospv() : 0;
}
else {
ret = osp_thr::ospv_2sv(pv->conf);
( run in 1.326 second using v1.01-cache-2.11-cpan-5511b514fd6 )