]> rtime.felk.cvut.cz Git - frescor/frsh.git/commit
Shared Objects.
authorDario Faggioli <faggioli@gandalf.sssup.it>
Wed, 25 Feb 2009 08:42:59 +0000 (09:42 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 1 Mar 2009 18:53:33 +0000 (19:53 +0100)
commit16707bf591b90bb9aa570f12cd4adb93775b195a
tree2d82cf07c41184310502773fd721e3bc241a302a
parentdf7264751d1cf4a93c102f265ecc13536a935db8
Shared Objects.

This commit introduces shared objects. The implementation is fully
resource manager independent, and thus can be used with dummy, AQuoSA,
CGroups, or whatever else.

A small uncompliance with the FRSH API semantic is present, since we
need the user not to create an external mutex that will be associated
with the shared object. Instead, we create the mutex along with the
shared object and return it to the user together with the shared object
handle.
This issue will be further analyzed to find out if it would be possible
to remove it...

Moreover, this commit does not fully implemente serialization and
deserialization for the critical sections contract block, since more
discussion is needed to address the issue. Thus, we only provide some
stubs here, just to make the framework compile and run some simple
tests.

Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>
16 files changed:
fres/Makefile.omk
fres/contract/fres_blocks.idl
fres/contract/fres_container.c
fres/contract/fres_container.h
fres/contract/fres_contract.h
fres/contract/idl_native.h
fres/sharedobj/Makefile [new file with mode: 0644]
fres/sharedobj/Makefile.omk [new file with mode: 0644]
fres/sharedobj/fres_sharedobj.c [new file with mode: 0644]
fres/sharedobj/fres_sharedobj.h [new file with mode: 0644]
fres/sharedobj/fres_sharedobj_idl.idl [new file with mode: 0644]
fres/sharedobj/tests/Makefile [new file with mode: 0644]
fres/sharedobj/tests/Makefile.omk [new file with mode: 0644]
frsh_api/Makefile.omk
frsh_api/frsh_opaque_types.h
frsh_api/frsh_sharedobj.c