void SurfaceFlinger::handleTransaction(uint32_t transactionFlags) { ATRACE_CALL(); State drawingState(mDrawingState); Mutex::Autolock _l(mStateLock); const nsecs_t now = systemTime(); mDebugInTransaction = now; transactionFlags = getTransactionFlags(eTransactionMask);//产生一个新的transaction...
nsecs = 100; spi = m->spi; tmp = 0; cs_change = 1; status = 0; list_for_each_entry (t, &m->transfers, transfer_list) { /* override speed or wordsize? */ if (t->speed_hz || t->bits_per_word) do_setup = 1; /* init (-1) or override (1) transfer params */ if ...
nsecs = 100; spi = m->spi; tmp = 0; cs_change = 1; status = 0; list_for_each_entry (t, &m->transfers, transfer_list) { /* override speed or wordsize? */ if (t->speed_hz || t->bits_per_word) do_setup = 1; /* init (-1) or override (1) transfer params */ if ...
status_tInputPublisher::publishKeyEvent( uint32_tseq, int32_tdeviceId, int32_tsource, int32_taction, int32_tflags, int32_tkeyCode, int32_tscanCode, int32_tmetaState, int32_trepeatCount, nsecs_tdownTime, nsecs_teventTime) { #if DEBUG_TRANSPORT_ACTIONS ALOGD("channel '%s' publisher...
0 : 1); trace_ext4_lazy_itable_init(sb, group); if (elr->lr_timeout == 0) { elr->lr_timeout = nsecs_to_jiffies((ktime_get_real_ns() - start_time) * EXT4_SB(elr->lr_super)->s_li_wait_mult); } elr->lr_next_sched = jiffies + elr->lr_timeout; elr->lr_next_gr...
now():表示当前时间的time_pointto_time_t():将time_point转换成time_t秒from_time_t():将time_t转换成time_point 源码如下: structsystem_clock{// wraps GetSystemTimePreciseAsFileTime/GetSystemTimeAsFileTimeusingrep=longlong;usingperiod=ratio_multiply<ratio<_XTIME_NSECS_PER_TICK,1>,nano>;...
ND_PRINT(" %u nanoseconds", nsecs); *len -= 4; bp += 4; } static void ptp_print_timestamp_identity(netdissect_options *ndo, const u_char *bp, u_int *len, const char *ttype) { uint64_t secs; uint32_t nsecs; uint16_t port_id; uint64_t port_identity; ...
status_t wait(Mutex& mutex); //线程B和C的超时等待,B和C可以指定等待时间,当超过这个时间,条件却还不满足,则退出等待 status_t waitRelative(Mutex& mutex, nsecs_t reltime); //触发者A用来通知条件已经满足,但是B和C只有一个会被唤醒 voidsignal(); ...
void nfs_metrics__rpcs_in_flight(int64_t value) { monitoring__gauge_set(rpcs_inflight, value); } void nfs_metrics__nfs3_request(uint32_t proc, nsecs_elapsed_t request_time, nfsstat3 nfs_status, @@ -61,3 +105,8 @@ void nfs_metrics__nfs4_request(uint32_t op, operation, request...
tv.nsecs = (int)val; return true; } static bool set_rel_time(char *optarg_str_p) { char *frac, *end; long val; size_t frac_digits; if (!optarg_str_p) return true; /* skip leading whitespace */ while (*optarg_str_p == ' ' || *optarg_str_p == '\t...