Lock.php 921 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php
  2. namespace Swoole;
  3. class Lock
  4. {
  5. public const FILELOCK = 2;
  6. public const MUTEX = 3;
  7. public const SEM = 4;
  8. public const RWLOCK = 1;
  9. public const SPINLOCK = 5;
  10. public $errCode = 0;
  11. public function __construct($type = null, $filename = null)
  12. {
  13. }
  14. public function __destruct()
  15. {
  16. }
  17. /**
  18. * @return mixed
  19. */
  20. public function lock()
  21. {
  22. }
  23. /**
  24. * @return mixed
  25. */
  26. public function lockwait($timeout = null)
  27. {
  28. }
  29. /**
  30. * @return mixed
  31. */
  32. public function trylock()
  33. {
  34. }
  35. /**
  36. * @return mixed
  37. */
  38. public function lock_read()
  39. {
  40. }
  41. /**
  42. * @return mixed
  43. */
  44. public function trylock_read()
  45. {
  46. }
  47. /**
  48. * @return mixed
  49. */
  50. public function unlock()
  51. {
  52. }
  53. /**
  54. * @return mixed
  55. */
  56. public function destroy()
  57. {
  58. }
  59. }