diff options
| author | Christoph Berg <myon@debian.org> | 2026-10-09 14:12:35 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-10-09 14:12:35 +0200 |
| commit | ffc62c792c9a5196cb4ce7a353287dfe20db6524 (patch) | |
| tree | 1269efa852935b183daae4bb33a58d1b4d2ffb53 /lib/shmem.f90 | |
| parent | 059831534c7e884f0a607ed86b582fd00d821731 (diff) | |
New upstream version 3.3.0~beta1+dfsgupstream/3.3.0_beta1+dfsg
Diffstat (limited to 'lib/shmem.f90')
| -rw-r--r-- | lib/shmem.f90 | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/lib/shmem.f90 b/lib/shmem.f90 index 853f67e9..058916bc 100644 --- a/lib/shmem.f90 +++ b/lib/shmem.f90 @@ -1,19 +1,8 @@ module shmem - ! external routines wrapping the Qt QSharedMemory class interface - function shmem_create (size) bind(C, name="shmem_create") - use iso_c_binding, only: c_bool, c_int - logical(c_bool) :: shmem_create - integer(c_int), value, intent(in) :: size - end function shmem_create - - subroutine shmem_setkey (key) bind(C, name="shmem_setkey") + function shmem_attach (key) bind(C, name="shmem_attach") use iso_c_binding, only: c_bool, c_char character(kind=c_char), intent(in) :: key(*) - end subroutine shmem_setkey - - function shmem_attach () bind(C, name="shmem_attach") - use iso_c_binding, only: c_bool logical(c_bool) :: shmem_attach end function shmem_attach @@ -23,13 +12,14 @@ module shmem end function shmem_address function shmem_size() bind(C, name="shmem_size") - use, intrinsic :: iso_c_binding, only: c_int - integer(c_int) :: shmem_size + use, intrinsic :: iso_c_binding, only: c_size_t + integer(c_size_t) :: shmem_size end function shmem_size - function shmem_detach () bind(C, name="shmem_detach") - use iso_c_binding, only: c_bool - logical(c_bool) :: shmem_detach - end function shmem_detach + function shmem_lock_worker (path) bind(C, name="shmem_lock_worker") + use iso_c_binding, only: c_bool, c_char + character(kind=c_char), intent(in) :: path(*) + logical(c_bool) :: shmem_lock_worker + end function shmem_lock_worker end interface end module shmem |
