|
Last change
on this file since 139 was
81,
checked in by rosiere, 18 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords set to
Id
|
|
File size:
269 bytes
|
| Line | |
|---|
| 1 | #include "../include/RamLock.h" |
|---|
| 2 | |
|---|
| 3 | namespace environment { |
|---|
| 4 | namespace ramlock { |
|---|
| 5 | |
|---|
| 6 | // return the value of the lock and untake this |
|---|
| 7 | bool RamLock::write (uint32_t num_lock) |
|---|
| 8 | { |
|---|
| 9 | bool val = _lock [num_lock]; |
|---|
| 10 | _lock [num_lock] = UNLOCK; |
|---|
| 11 | |
|---|
| 12 | return val; |
|---|
| 13 | } |
|---|
| 14 | }; |
|---|
| 15 | }; |
|---|
Note: See
TracBrowser
for help on using the repository browser.