source:
trunk/IPs/systemC/Environment/RamLock/src/RamLock_read.cpp
@
80
Last change on this file since 80 was 80, checked in by , 16 years ago | |
---|---|
File size: 264 bytes |
Rev | Line | |
---|---|---|
[78] | 1 | #include "../include/RamLock.h" |
2 | ||
[80] | 3 | namespace environment { |
[78] | 4 | namespace ramlock { |
5 | ||
6 | // return the value of the lock and take this | |
7 | bool RamLock::read (uint32_t num_lock) | |
8 | { | |
9 | bool val = _lock [num_lock]; | |
10 | _lock [num_lock] = LOCK; | |
11 | ||
12 | return val; | |
13 | } | |
14 | }; | |
15 | }; |
Note: See TracBrowser
for help on using the repository browser.