forked from lei.chen/myxce
use librtti for worker/queue/resource
This commit is contained in:
parent
532c68e6e1
commit
2ee87d4ee6
23 changed files with 1078 additions and 396 deletions
|
|
@ -169,13 +169,15 @@ static void my_xstring_killer(var s)
|
|||
|
||||
int xstring_table_init(int nslots)
|
||||
{
|
||||
kv_params_t params = { .nslots = nslots,
|
||||
.keyops = &string_key_ops,
|
||||
.datakiller = my_xstring_killer };
|
||||
if (nslots <= 1) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
mylock_init(&(xstring_table.lock));
|
||||
xstring_table.xstr_table
|
||||
= makeInstance(&kvtab_string_type, nslots, my_xstring_killer);
|
||||
xstring_table.xstr_table = makeInstance(&kvtab_type, ¶ms);
|
||||
|
||||
if (xstring_table.xstr_table == NULL) {
|
||||
return -errno;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue