Open this in Axiom REPL →
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"sync" | |
"sync/atomic" | |
"testing" | |
) | |
// AtomicSafeString implements thread-safe string operations using atomic.Value | |
type AtomicSafeString struct { |
Open this in Axiom REPL →
-
First/Last Name: Yi sheng Chai
-
Email: [email protected]
-
School/University: Chongqing University
I hereby claim:
- I am Hackerchai on github.
- I am hackerchai (https://keybase.io/hackerchai) on keybase.
- I have a public key whose fingerprint is C8F8 CE8A 31B9 CB55 9D8A 555B 8D63 4277 16F4 A85A
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.hackerchai.rapid.Thread; | |
/** | |
* Created by hackerchai on 15-2-5. | |
*/ | |
import java.io.BufferedReader; | |
import java.io.BufferedWriter; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.OutputStreamWriter; |