diff options
| author | Christoph Berg <myon@debian.org> | 2025-01-09 22:12:06 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-01-09 22:12:06 +0100 |
| commit | 992d4b4b8d3f3a630a2cf00d593ee4ce4dfa7ce8 (patch) | |
| tree | fbfdfe6bcb0a8a114be2480dac53d88c977e4869 /lib/shmem.f90 | |
| parent | 4320ce238aae1fe87fc9f379cdd816e9317885fa (diff) | |
New upstream version 2.7.0~rc8+repackupstream/2.7.0_rc8+repack
Diffstat (limited to 'lib/shmem.f90')
| -rwxr-xr-x | lib/shmem.f90 | 90 |
1 files changed, 45 insertions, 45 deletions
diff --git a/lib/shmem.f90 b/lib/shmem.f90 index 1faacbf6..8d9db7d6 100755 --- a/lib/shmem.f90 +++ b/lib/shmem.f90 @@ -1,45 +1,45 @@ -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")
- 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
-
- function shmem_address() bind(C, name="shmem_address")
- use, intrinsic :: iso_c_binding, only: c_ptr
- type(c_ptr) :: shmem_address
- 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
- end function shmem_size
-
- function shmem_lock () bind(C, name="shmem_lock")
- use iso_c_binding, only: c_bool
- logical(c_bool) :: shmem_lock
- end function shmem_lock
-
- function shmem_unlock () bind(C, name="shmem_unlock")
- use iso_c_binding, only: c_bool
- logical(c_bool) :: shmem_unlock
- end function shmem_unlock
-
- function shmem_detach () bind(C, name="shmem_detach")
- use iso_c_binding, only: c_bool
- logical(c_bool) :: shmem_detach
- end function shmem_detach
- end interface
-end module shmem
+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") + 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 + + function shmem_address() bind(C, name="shmem_address") + use, intrinsic :: iso_c_binding, only: c_ptr + type(c_ptr) :: shmem_address + 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 + end function shmem_size + + function shmem_lock () bind(C, name="shmem_lock") + use iso_c_binding, only: c_bool + logical(c_bool) :: shmem_lock + end function shmem_lock + + function shmem_unlock () bind(C, name="shmem_unlock") + use iso_c_binding, only: c_bool + logical(c_bool) :: shmem_unlock + end function shmem_unlock + + function shmem_detach () bind(C, name="shmem_detach") + use iso_c_binding, only: c_bool + logical(c_bool) :: shmem_detach + end function shmem_detach + end interface +end module shmem |
