Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/beanstalkd/beanstalkd
/ functions
Functions
349 in github.com/beanstalkd/beanstalkd
⨍
Functions
349
◇
Types & classes
47
↓ 2 callers
Function
filewclose
file.c:554
↓ 2 callers
Function
has_reserved_job
conn.c:108
↓ 2 callers
Function
is_job_reserved_by_conn
prot.c:728
↓ 2 callers
Function
kick_buried_job
prot.c:584
↓ 2 callers
Function
kick_delayed_job
prot.c:620
↓ 2 callers
Function
makenextfile
walg.c:210
↓ 2 callers
Function
maybe_enqueue_incoming_job
prot.c:1240
↓ 2 callers
Function
readline
testserv.c:264
↓ 2 callers
Function
rehash
job.c:40
↓ 2 callers
Function
remove_delayed_job
remove_delayed_job returns non-NULL value if job j was in the delayed state. It removes the job from the tube delayed heap.
prot.c:702
↓ 2 callers
Function
remove_this_reserved_job
j can be NULL */
prot.c:1256
↓ 2 callers
Function
rmtree
Removes path and all of its children. Writes errors to stderr and keeps going. If path doesn't exist, rmtree returns silently. */
ct/ct.c:260
↓ 2 callers
Function
runbenchn
ct/ct.c:298
↓ 2 callers
Function
set_nonblocking
net.c:18
↓ 2 callers
Function
set_sig_handler
testserv.c:143
↓ 2 callers
Function
siftdown
heap.c:33
↓ 2 callers
Function
store_job
job.c:25
↓ 2 callers
Function
swap
heap.c:15
↓ 2 callers
Function
tube_dref
tube.c:44
↓ 2 callers
Function
usenext
returns 1 on success, 0 on error.
walg.c:74
↓ 2 callers
Function
vwarnx
util.c:19
↓ 2 callers
Function
waittest
ct/ct.c:160
↓ 2 callers
Function
warn_systemd_ignored_option
util.c:89
↓ 1 callers
Function
balance
Ensures: 1. w->cur->resv >= n. 2. w->cur->resv is congruent to n (mod z). 3. x->resv is congruent to 0 (mod z) for each future file x. (where z is the
walg.c:305
↓ 1 callers
Function
balancerest
Ensures: 1. b->resv is congruent to n (mod z). 2. x->resv is congruent to 0 (mod z) for each future file x. Assumes (and preserves) that b->resv >= n.
walg.c:268
↓ 1 callers
Function
conn_process_io
prot.c:1923
↓ 1 callers
Function
conn_ready
conn.c:207
↓ 1 callers
Function
conn_timeout
There are three reasons this function may be called. We need to check for * all of them. * * 1. A reserved job has run out of time. * 2. A waiti
prot.c:1860
↓ 1 callers
Function
connsetproducer
conn.c:68
↓ 1 callers
Function
conntickat
Returns positive nanoseconds when c should tick, 0 otherwise.
conn.c:116
↓ 1 callers
Function
count_cur_conns
conn.c:84
↓ 1 callers
Function
count_cur_producers
conn.c:96
↓ 1 callers
Function
count_cur_workers
conn.c:102
↓ 1 callers
Function
count_tot_conns
conn.c:90
↓ 1 callers
Function
ctfailnow
ct/ct.c:76
↓ 1 callers
Function
ctsetbytes
ct/ct.c:119
↓ 1 callers
Function
ctstarttimer
ct/ct.c:99
↓ 1 callers
Function
dispatch_cmd
prot.c:1286
↓ 1 callers
Function
enqueue_incoming_job
prot.c:865
↓ 1 callers
Function
enqueue_reserved_jobs
prot.c:570
↓ 1 callers
Function
enqueue_waiting_conn
enqueue_waiting_conn sets CONN_TYPE_WAITING for the connection, adds it to the waiting_conns set of every tube it's watching.
prot.c:416
↓ 1 callers
Function
enter_drain_mode
prot.c:1902
↓ 1 callers
Function
epollq_rmconn
epollq_rmconn removes connection c from the epollq.
prot.c:297
↓ 1 callers
Function
fileread
Fileread reads jobs from f->path into list. It returns 0 on success, or 1 if any errors occurred.
file.c:127
↓ 1 callers
Function
filewopen
Opens f for writing, writes a header, and initializes f->free and f->resv. Sets f->iswopen if successful.
file.c:459
↓ 1 callers
Function
filewrjobfull
file.c:539
↓ 1 callers
Function
filewrjobshort
file.c:521
↓ 1 callers
Function
get_delayed_job_ct
prot.c:607
↓ 1 callers
Function
grow
ms.c:15
↓ 1 callers
Function
h_accept
prot.c:2200
↓ 1 callers
Function
h_conn
prot.c:2107
↓ 1 callers
Function
job_hash_free
job.c:141
↓ 1 callers
Function
job_state
job.c:220
↓ 1 callers
Function
kick_buried_jobs
return the number of jobs successfully kicked */
prot.c:656
↓ 1 callers
Function
kick_delayed_jobs
return the number of jobs successfully kicked */
prot.c:667
↓ 1 callers
Function
kick_jobs
prot.c:677
↓ 1 callers
Function
make_and_insert_tube
tube.c:65
↓ 1 callers
Function
make_conn
conn.c:34
↓ 1 callers
Function
make_inet_socket
net.c:36
↓ 1 callers
Function
make_unix_socket
net.c:150
↓ 1 callers
Function
max
ct/ct.c:409
↓ 1 callers
Function
moveone
walg.c:120
↓ 1 callers
Function
mustdialunix
testserv.c:113
↓ 1 callers
Function
muststart
testserv.c:55
↓ 1 callers
Function
next_awaited_job
next_awaited_job iterates through all the tubes with awaiting connections, returns the next ready job with the smallest priority. If jobs has the same
prot.c:433
↓ 1 callers
Function
prot_replay
For each job in list, inserts the job into the appropriate data structures and adds it to the log. Returns 1 on success, 0 on failure.
prot.c:2305
↓ 1 callers
Function
prottick
prottick returns nanoseconds till the next work.
prot.c:2141
↓ 1 callers
Function
ratio
walg.c:91
↓ 1 callers
Function
rawfalloc
rawfalloc allocates disk space of len bytes. It expects fd's offset to be 0; may also reset fd's offset to 0. Returns 0 on success, and a positive err
file.c:56
↓ 1 callers
Function
read_tube_name
Read a tube name from the given buffer moving the buffer to the name start */
prot.c:1081
↓ 1 callers
Function
readrec
Readrec reads a record from f->fd into linked list l. If an error occurs, it sets *err to 1. Readrec returns the number of records read, either 1 or 0
file.c:156
↓ 1 callers
Function
readrec5
Readrec5 is like readrec, but it reads a record in "version 5" of the log format.
file.c:287
↓ 1 callers
Function
readtokens
ct/ct.c:523
↓ 1 callers
Function
report
ct/ct.c:482
↓ 1 callers
Function
rounddown10
rounddown10 rounds a number down to the nearest power of 10. */
ct/ct.c:364
↓ 1 callers
Function
roundup
roundup rounds n up to a number of the form [1eX, 2eX, 5eX]. */
ct/ct.c:383
↓ 1 callers
Function
runallbench
ct/ct.c:473
↓ 1 callers
Function
runalltest
ct/ct.c:222
↓ 1 callers
Function
runbench
ct/ct.c:419
↓ 1 callers
Function
set_sig_handlers
main.c:45
↓ 1 callers
Function
siftup
heap.c:49
↓ 1 callers
Function
sockinit
sunos.c:13
↓ 1 callers
Function
socknext
sunos.c:57
↓ 1 callers
Function
soonest_delayed_job
soonest_delayed_job returns the delayed job with the smallest deadline_at among all tubes.
prot.c:484
↓ 1 callers
Function
start
ct/ct.c:188
↓ 1 callers
Function
su
main.c:12
↓ 1 callers
Function
touch_job
prot.c:734
↓ 1 callers
Function
tube_free
tube.c:34
↓ 1 callers
Function
tube_iref
tube.c:58
↓ 1 callers
Function
uptime
prot.c:923
↓ 1 callers
Function
wait_for_job
prot.c:1098
↓ 1 callers
Function
walcompact
walg.c:148
↓ 1 callers
Function
waldirlock
Returns the number of locks acquired: either 0 or 1.
walg.c:397
↓ 1 callers
Function
walgc
walg.c:53
↓ 1 callers
Function
walinit
walg.c:477
↓ 1 callers
Function
walread
walg.c:436
↓ 1 callers
Function
walresvmigrate
Returns the number of bytes reserved or 0 on error.
walg.c:104
↓ 1 callers
Function
walresvput
Returns the number of bytes reserved or 0 on error.
walg.c:366
↓ 1 callers
Function
walscandir
Reads w->dir for files matching binlog.NNN, sets w->next to the next unused number, and returns the minimum number. If no files are found, sets w->nex
walg.c:22
↓ 1 callers
Function
walsync
walg.c:159
← previous
next →
101–200 of 349, ranked by callers