logo
  • 教程列表
  • SO官方文档
  • 同步
    • 同步对象
    • 在此隐式同步
  1. StackOverflow 文档
  2. Scala Language 教程
  3. 同步
  4. 在此隐式同步

在此隐式同步

Created: November-22, 2018

 /* within a class, def, trait or object, but not a constructor */
 synchronized {
   /* code to run when an intrisctic lock on `this` is acquired */
   /* no other thread can get the this lock unless execution is suspended with
    * `wait` on `this`
    */
 }
  • 同步对象

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明