Changeset c52f033
- Timestamp:
- Jan 10, 2022, 5:47:58 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
- Children:
- e202aa8
- Parents:
- 2210cfc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel/fwd.hfa
r2210cfc rc52f033 77 77 78 78 static inline uint64_t __tls_rand() { 79 return 79 80 #if defined(__SIZEOF_INT128__) 80 return__lehmer64( kernelTLS().rand_seed );81 __lehmer64( kernelTLS().rand_seed ); 81 82 #else 82 return__xorshift64( kernelTLS().rand_seed );83 __xorshift64( kernelTLS().rand_seed ); 83 84 #endif 84 85 } … … 91 92 92 93 static inline unsigned __tls_rand_fwd() { 93 94 94 kernelTLS().ready_rng.fwd_seed = (A * kernelTLS().ready_rng.fwd_seed + C) & (M - 1); 95 95 return kernelTLS().ready_rng.fwd_seed >> D; … … 112 112 } 113 113 } 114 115 116 114 117 115 extern void disable_interrupts(); -
libcfa/src/fstream.cfa
r2210cfc rc52f033 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun Oct 10 11:23:05 202113 // Update Count : 51 212 // Last Modified On : Mon Jan 10 08:45:05 2022 13 // Update Count : 513 14 14 // 15 15 … … 52 52 inline void setPrt$( ofstream & os, bool state ) { os.prt$ = state; } 53 53 54 inline void lock( ofstream & os ) with( os ) { 54 inline void lock( ofstream & os ) with( os ) { lock( os.lock$ ); } 55 55 inline void unlock( ofstream & os ) { unlock( os.lock$ ); } 56 56 -
tests/io/io-acquire.cfa
r2210cfc rc52f033 10 10 // Created On : Mon Mar 1 18:40:09 2021 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Oct 6 18:04:58 202113 // Update Count : 7 212 // Last Modified On : Mon Jan 10 07:57:12 2022 13 // Update Count : 73 14 14 // 15 15 … … 23 23 24 24 for ( 100 ) { // expression protection 25 mutex( sout) sout | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;25 mutex( sout ) sout | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; 26 26 } 27 27 mutex( sout ) { // statement protection … … 51 51 int a, b, c, d, e, f, g, h, i; 52 52 for ( 100 ) { // expression protection 53 mutex( sin) sin | a | b | c | d | e | f | g | h | i;53 mutex( sin ) sin | a | b | c | d | e | f | g | h | i; 54 54 } 55 55 mutex( sin ) { // statement protection
Note: See TracChangeset
for help on using the changeset viewer.