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

  • 關於本站
  • 免責聲明