1. Kink Programming Language
  2. Untitled project
  3. kink

Commits

Taku Miyakawa  committed 84cbfae

Renames THREAD_LOCAL_STORAGE.new_thread_local_storage to .new

  • Participants
  • Parent commits 9de0ff0
  • Branches default

Comments (0)

Files changed (4)

File src/main/kink/MAP.kn

View file
     '_init' { > :Self (:Java_map)
         Self.set_vars(
             'Java_map' Java_map
-            'Showing?_tl' THREAD_LOCAL_STORAGE.new_thread_local_storage
+            'Showing?_tl' THREAD_LOCAL_STORAGE.new
         )
     }
     'any?' { > :Map ()

File src/main/kink/TEST.kn

View file
 :Node_id_provider = AtomicLong.new
 
 
-:Preparing_group_tls = THREAD_LOCAL_STORAGE.new_thread_local_storage
+:Preparing_group_tls = THREAD_LOCAL_STORAGE.new
 
 :_new_id = {
     Node_id_provider.getAndIncrement

File src/main/kink/THREAD_LOCAL_STORAGE.kn

View file
 use('java.lang.ThreadLocal')
 use('java.lang.Thread')
 
-### new_thread_local_storage => /thread_local_storage
-:new_thread_local_storage = { ()
+### new => /thread_local_storage
+:new = { ()
     Thread_local_storage_proto.child(
         'Java_thread_local' ThreadLocal.new
     )

File src/test/kink/THREAD_LOCAL_STORAGE_test.kn

View file
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 # THE SOFTWARE.
 
-use('THREAD_LOCAL_STORAGE.new_thread_local_storage')
+use('THREAD_LOCAL_STORAGE')
 use('java.lang.Thread')
 use('java.util.concurrent.Executors')
 use('java.util.concurrent.Callable')
 test_group('empty storage, used in a single thread') { # {{{1
     # Thread local storage to test
     set_up(:Tls) {
-        new_thread_local_storage
+        THREAD_LOCAL_STORAGE.new
     }
 
     after { Tls.remove }
 
     # Thread local storage to test
     set_up(:Tls) {
-        new_thread_local_storage
+        THREAD_LOCAL_STORAGE.new
     }
 
     test('distinct values are associated with a single storage on distinct threads') {