/dports/sysutils/gsmartcontrol/gsmartcontrol-1.1.3/src/hz/ |
H A D | sync_policy_glib.h | 102 if (for_write) { 116 if (for_write) { 126 void lock(bool for_write = false) { native_lock(mutex_, for_write); } 127 bool trylock(bool for_write = false) { return native_trylock(mutex_, for_write); } 128 void unlock(bool for_write = false) { native_unlock(mutex_, for_write); } 226 if (for_write) { 240 if (for_write) { 250 void lock(bool for_write = false) { native_lock(mutex_, for_write); } 252 void unlock(bool for_write = false) { native_unlock(mutex_, for_write); } 339 static void lock(RWMutex& m, bool for_write = false) { m.lock(for_write); } [all …]
|
H A D | sync_policy_pthread.h | 277 if (for_write) { in native_lock() 292 if (for_write) { in native_trylock() 332 void lock(bool for_write = false) { native_lock(rwl_, for_write); } 333 bool trylock(bool for_write = false) { return native_trylock(rwl_, for_write); } 334 void unlock(bool for_write = false) { native_unlock(rwl_, for_write); } 406 static void lock(RWMutex& m, bool for_write = false) { m.lock(for_write); } 407 static bool trylock(RWMutex& m, bool for_write = false) { return m.trylock(for_write); } 408 static void unlock(RWMutex& m, bool for_write = false) { m.unlock(for_write); } 410 static void lock(NativeRWMutex& m, bool for_write = false) { RWMutex::native_lock(m, for_write); } 411 …static bool trylock(NativeRWMutex& m, bool for_write = false) { return RWMutex::native_trylock(m, … [all …]
|
H A D | sync.h | 331 GenericScopedRWLock(MutexType& mutex, bool for_write = false, bool do_lock = true) 332 : mutex_(mutex), do_lock_(do_lock), for_write_(for_write) in mutex_() 359 : mutex_(mutex), do_lock_(do_lock), for_write_(for_write), locked_(false) in mutex_() 362 locked_ = Policy::trylock(mutex_, for_write); in mutex_() 445 static void lock(RWMutex& m, bool for_write = false) { } 446 static bool trylock(RWMutex& m, bool for_write = false) { return true; } 447 static void unlock(RWMutex& m, bool for_write = false) { } 449 static void lock(NativeRWMutex& m, bool for_write = false) { } 450 static bool trylock(NativeRWMutex& m, bool for_write = false) { return true; } 451 static void unlock(NativeRWMutex& m, bool for_write = false) { } [all …]
|
H A D | sync_policy_boost.h | 139 static void lock(RWMutex& m, bool for_write = false) 142 if (for_write) { 150 + (for_write ? "true" : "false") + "): Error while locking mutex."); in catch() 154 static bool trylock(RWMutex& m, bool for_write = false) 158 status = (for_write ? m.try_lock() : m.try_lock_shared()); 162 + (for_write ? "true" : "false") + "): Error while trying to lock mutex."); in catch() 167 static void unlock(RWMutex& m, bool for_write = false) 169 if (for_write) {
|
H A D | sync_policy_win32.h | 146 void lock(bool for_write = false) 148 if (for_write) { 180 bool trylock(bool for_write = false) 182 if (for_write) { 220 void unlock(bool for_write = false) 328 static void lock(RWMutex& m, bool for_write = false) { m.lock(for_write); } 329 static bool trylock(RWMutex& m, bool for_write = false) { return m.trylock(for_write); } 330 static void unlock(RWMutex& m, bool for_write = false) { m.unlock(for_write); }
|
H A D | sync_policy_glibmm.h | 94 static void lock(RWMutex& m, bool for_write = false) 96 if (for_write) { 102 static bool trylock(RWMutex& m, bool for_write = false) 104 return (for_write ? m.writer_trylock() : m.reader_trylock()); 106 static void unlock(RWMutex& m, bool for_write = false) 108 if (for_write) {
|
H A D | sync_policy_poco.h | 78 static void lock(RWMutex& m, bool for_write = false) 80 if (for_write) { 86 static bool trylock(RWMutex& m, bool for_write = false) 88 return (for_write ? m.tryWriteLock() : m.tryReadLock()); 90 static void unlock(RWMutex& m, bool for_write = false)
|
/dports/security/kleopatra/kleopatra-21.12.3/src/utils/ |
H A D | detail_p.h | 51 static inline int translate_sys2libc_fd(assuan_fd_t fd, bool for_write) in translate_sys2libc_fd() argument 57 return _open_osfhandle((intptr_t)fd, for_write); in translate_sys2libc_fd() 59 (void)for_write; in translate_sys2libc_fd()
|
/dports/www/py-django-haystack/django-haystack-2.8.1/docs/ |
H A D | multiple_index.rst | 78 For write operations (when a delete or update is executed), the ``for_write`` 88 def for_write(self, **hints): 93 If the ``for_read`` or ``for_write`` method doesn't exist or returns ``None``, 97 The ``for_write`` method can return either a single string representing an 101 def for_write(self, **hints): 106 ``for_write`` receives an ``index`` option (pointing to the ``SearchIndex`` 124 def for_write(self, **hints): 132 def for_write(self, **hints): 145 def for_write(self, **hints):
|
/dports/security/gnupg/gnupg-2.3.3/common/ |
H A D | sysutils.h | 75 int translate_sys2libc_fd (gnupg_fd_t fd, int for_write); 76 int translate_sys2libc_fd_int (int fd, int for_write); 77 int check_special_filename (const char *fname, int for_write, int notranslate);
|
H A D | sysutils.c | 536 translate_sys2libc_fd (gnupg_fd_t fd, int for_write) in translate_sys2libc_fd() argument 539 (void)for_write; in translate_sys2libc_fd() 549 x = _open_osfhandle ((intptr_t)fd, for_write ? 1 : 0); in translate_sys2libc_fd() 554 (void)for_write; in translate_sys2libc_fd() 564 translate_sys2libc_fd_int (int fd, int for_write) in translate_sys2libc_fd_int() argument 567 fd = (int) _assuan_w32ce_finish_pipe (fd, for_write); in translate_sys2libc_fd_int() 568 return translate_sys2libc_fd ((void*)fd, for_write); in translate_sys2libc_fd_int() 573 return translate_sys2libc_fd ((void*)fd, for_write); in translate_sys2libc_fd_int() 575 (void)for_write; in translate_sys2libc_fd_int() 587 check_special_filename (const char *fname, int for_write, int notranslate) in check_special_filename() argument [all …]
|
/dports/devel/gvfs/gvfs-1.46.2/metadata/ |
H A D | metatree.h | 57 gboolean for_write, 62 gboolean for_write); 64 gboolean for_write);
|
H A D | metatree.c | 120 gboolean for_write; member 164 gboolean for_write, 389 if (tree->for_write && !retried) in meta_tree_init() 509 gboolean for_write) in meta_tree_open() argument 521 tree->for_write = for_write; in meta_tree_open() 558 gboolean for_write) in meta_tree_lookup_by_name() argument 572 if (tree && tree->for_write == for_write) in meta_tree_lookup_by_name() 585 tree = meta_tree_open (filename, for_write); in meta_tree_lookup_by_name() 1142 if (for_write) in meta_journal_open() 1170 if (for_write) in meta_journal_open() [all …]
|
/dports/lang/guile1/guile-1.8.8/libguile/ |
H A D | environments.h | 50 SCM (*cell) (SCM self, SCM symbol, int for_write); 84 #define SCM_ENVIRONMENT_CELL(env, symbol, for_write) \ argument 85 ((*(SCM_ENVIRONMENT_FUNCS (env)->cell)) (env, symbol, for_write)) 118 SCM_API SCM scm_environment_cell (SCM env, SCM sym, SCM for_write); 119 SCM_API SCM scm_c_environment_cell (SCM env, SCM sym, int for_write);
|
H A D | environments.c | 317 (SCM env, SCM sym, SCM for_write), 336 SCM_ASSERT (scm_is_bool (for_write), for_write, SCM_ARG3, FUNC_NAME); 358 scm_c_environment_cell(SCM env, SCM sym, int for_write) in scm_c_environment_cell() argument 363 return SCM_ENVIRONMENT_CELL (env, sym, for_write); in scm_c_environment_cell() 1112 eval_environment_lookup (SCM env, SCM sym, int for_write) in eval_environment_lookup() argument 1130 if (!for_write) in eval_environment_lookup() 1184 SCM mutability = for_write ? MUTABLE : UNKNOWN; in eval_environment_lookup() 1304 eval_environment_cell (SCM env, SCM sym, int for_write) in eval_environment_cell() argument 1718 import_environment_cell (SCM env, SCM sym, int for_write) in import_environment_cell() argument 1732 return SCM_ENVIRONMENT_CELL (resolve, sym, for_write); in import_environment_cell() [all …]
|
/dports/lang/racket/racket-8.3/src/bc/src/ |
H A D | print.c | 512 scheme_current_thread->ku.k.i1 = for_write; in check_cycles() 554 if (for_write >= 3) in check_cycles() 563 res = check_cycles(v, for_write, ht, pp); in check_cycles() 578 res2 = check_cycles(v, for_write, ht, pp); in check_cycles() 591 if (for_write >= 3) { in check_cycles() 625 res2 = check_cycles(val, for_write, ht, pp); in check_cycles() 815 int for_write = p->ku.k.i1; in setup_graph_k() local 3877 if (for_write >= 3) { in writable_struct_subs() 3917 a[2] = (for_write in writable_struct_subs() 3918 ? ((for_write >= 3) in writable_struct_subs() [all …]
|
/dports/lang/racket-minimal/racket-8.3/src/bc/src/ |
H A D | print.c | 512 scheme_current_thread->ku.k.i1 = for_write; in check_cycles() 554 if (for_write >= 3) in check_cycles() 563 res = check_cycles(v, for_write, ht, pp); in check_cycles() 578 res2 = check_cycles(v, for_write, ht, pp); in check_cycles() 591 if (for_write >= 3) { in check_cycles() 625 res2 = check_cycles(val, for_write, ht, pp); in check_cycles() 815 int for_write = p->ku.k.i1; in setup_graph_k() local 3877 if (for_write >= 3) { in writable_struct_subs() 3917 a[2] = (for_write in writable_struct_subs() 3918 ? ((for_write >= 3) in writable_struct_subs() [all …]
|
/dports/www/py-django-haystack/django-haystack-2.8.1/test_haystack/ |
H A D | mocks.py | 17 def for_write(self, **hints): member in MockMasterSlaveRouter 28 def for_write(self, **hints): member in MockPassthroughRouter 36 def for_write(self, **hints): member in MockMultiRouter
|
H A D | test_loading.py | 115 self.assertEqual(cr.for_write(), ['default']) 121 self.assertEqual(cr.for_write(), ['master', 'default']) 128 self.assertEqual(cr.for_write(), ['master', 'default']) 131 self.assertEqual(cr.for_write(pass_through=False), ['pass', 'master', 'default']) 138 self.assertEqual(cr.for_write(), ['multi1', 'multi2', 'default'])
|
/dports/chinese/libime/libime-1.0.9/src/libime/core/kenlm/util/ |
H A D | mmap.cc | 105 void *MapOrThrow(std::size_t size, bool for_write, int flags, bool prefault, int fd, uint64_t offse… in MapOrThrow() argument 112 int protectC = for_write ? PAGE_READWRITE : PAGE_READONLY; in MapOrThrow() 113 int protectM = for_write ? FILE_MAP_WRITE : FILE_MAP_READ; in MapOrThrow() 121 int protect = for_write ? (PROT_READ | PROT_WRITE) : PROT_READ; in MapOrThrow() 368 Rolling::Rolling(int fd, bool for_write, std::size_t block, std::size_t read_bound, uint64_t offset… in Rolling() argument 374 for_write_ = for_write; in Rolling()
|
/dports/www/py-django-haystack/django-haystack-2.8.1/haystack/ |
H A D | signals.py | 47 using_backends = self.connection_router.for_write(instance=instance) 62 using_backends = self.connection_router.for_write(instance=instance)
|
/dports/emulators/ppsspp-qt5/ppsspp-1.12.3/Common/File/ |
H A D | FileDescriptor.cpp | 84 bool WaitUntilReady(int fd, double timeout, bool for_write) { in WaitUntilReady() argument 94 if (for_write) { in WaitUntilReady()
|
/dports/emulators/ppsspp/ppsspp-1.12.3/Common/File/ |
H A D | FileDescriptor.cpp | 84 bool WaitUntilReady(int fd, double timeout, bool for_write) { in WaitUntilReady() argument 94 if (for_write) { in WaitUntilReady()
|
/dports/emulators/libretro-ppsspp/ppsspp-1.12.3/Common/File/ |
H A D | FileDescriptor.cpp | 84 bool WaitUntilReady(int fd, double timeout, bool for_write) { in WaitUntilReady() argument 94 if (for_write) { in WaitUntilReady()
|
/dports/multimedia/tvheadend/tvheadend-4.2.8/src/ |
H A D | settings.c | 396 hts_settings_open_file(int for_write, const char *pathfmt, ...) in hts_settings_open_file() argument 408 if (for_write) in hts_settings_open_file() 412 flags = for_write ? O_CREAT | O_TRUNC | O_WRONLY : O_RDONLY; in hts_settings_open_file()
|