1 |
C $Header: $ |
2 |
|
3 |
SUBROUTINE MEMSYNC |
4 |
|
5 |
C /==========================================================\ |
6 |
C | SUBROUTINE MEMSYNC | |
7 |
C | o Place holder for memory sync routine | |
8 |
C |==========================================================| |
9 |
C | This routine is called wherever the code requires | |
10 |
C | that writes performed by one thread or process must | |
11 |
C | be guaranteed visible to other processes and or threads. | |
12 |
C | On SPARC this routine would implement a | |
13 |
C | asm("membar #LoadStore|#StoreStore"); | |
14 |
C | On ALPHA | |
15 |
C | asm("mb"); | |
16 |
C | Note: I have yet to show this is necessary although | |
17 |
C | the Memory Channel writes must need something like| |
18 |
C | this. | |
19 |
C \==========================================================/ |
20 |
|
21 |
END |