添加原子类 · leecodeer/JavaTutorial@48d25d7 · GitHub
Skip to content

Commit 48d25d7

Browse files
committed
添加原子类
1 parent c94ffac commit 48d25d7

3 files changed

Lines changed: 117 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package cn.byhieg.threadtutorial.concurrent.atom;
2+
3+
/**
4+
* Created by shiqifeng on 2017/5/5.
5+
* Mail byhieg@gmail.com
6+
*/
7+
public class MyObject {
8+
9+
public String name = "byhieg";
10+
public int age = 24;
11+
public volatile int id = 1;
12+
}
Lines changed: 69 additions & 0 deletions

0 commit comments

Comments
 (0)